You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
file: 'file:///d%3A/projects/living/user-platform/cest/ts/api/users.service.ts'
severity: 'Error'
message: 'Type 'keyof T2' cannot be used to index type 'T1'.'
at: '65,17'
source: 'ts'
It was working on another project I was working on. And while troubleshooting just now, I rolled back Typescript from 2.1.4 to 2.1.1, and it's working. So, something is getting introduced in the newest version of TS that is causing this issue, but at least there's a workaround for now.
@todrules thanks for helping us to pinpoint the issue to Typescript version update. We'll need a fix to be compatible with the latest version as well as old version (e.g. 2.1.1) of TS.
@todrules#4562 has been merged into master. Please pull the latest to give it a try. I believe it should address the issue that you reported if I'm not mistaken.
Description
Code generated:
Error message:
My package.json is:
And tsconfig.json:
Swagger-codegen version
2.2.3-SNAPSHOT
The text was updated successfully, but these errors were encountered: