Skip to content
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

TypeOperator not supported by ts-interface-builder: keyof SomeInterface #54

Open
TomascpMarques opened this issue Jun 27, 2021 · 0 comments

Comments

@TomascpMarques
Copy link

TomascpMarques commented Jun 27, 2021

TL;DR

Be able to use field: keyof SomeInterface as an interfaces field type, without needing to export custom types.

What's the issue?

Using keyof SomeInterface, as an interface field, type__throws out an error__ :
Node TypeOperator not supported by ts-interface-builder: keyof IUser

What happened?

So I was defining a new interface, and in one of the fields I defined the as field: keyof IUser, and when I ran the:
npx ts-interface-builder foo.ts it gave me the previously mentioned error.

What did you try to fix the issue?

After the error message, I used the Type suites, exported the type, rewrote the previous error producing code using the exported type, and it does not work, it builds, but still throws out an error.

What do you want?

Be able to use field: keyof OtherInterface directly, pretty pls

P.S

I'm loving your package, eases my development experience tremendously, loving it <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant