-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to support "Node IndexedAccessType" #37
Comments
I'm trying to play around with this and essentially tweaked ts-interface-builder/lib/index.ts Lines 96 to 97 in 5c0fa5b
and added additional case at the end case ts.SyntaxKind.IndexedAccessType:
return this._compileIndexSignatureDeclaration(node); But I am then getting stuck here ts-interface-builder/lib/index.ts Line 261 in 5c0fa5b
I am not sure where this type needs to be set / added at the moment |
You can learn more about that node type by finding it in the TypeScript source code: As for what code There might be other ways of doing it -- e.g. if |
Currently generating from this file fails with following error
Error: Node IndexedAccessType not supported by ts-interface-builder: ICharacter['username']
EDIT: Additional context on this type https://www.typescriptlang.org/docs/handbook/2/indexed-access-types.html
The text was updated successfully, but these errors were encountered: