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

Support typescript "keyof typeof" on imported YAML structures #27

Open
ArendPeter opened this issue Mar 24, 2024 · 0 comments
Open

Support typescript "keyof typeof" on imported YAML structures #27

ArendPeter opened this issue Mar 24, 2024 · 0 comments

Comments

@ArendPeter
Copy link

ArendPeter commented Mar 24, 2024

Hello,

Thanks for creating this tool, it's fitting my needs perfectly and it'll make our team's lives a lot easier

I was hoping to use typescript's "keyof typeof" syntax to let me ensure I only reference existing keys, but I'm having trouble getting that working.

Here's an example of defining a type based on keys of a javascript object
image

Supposedly this should work with json, however it doesn't seem to work when I try it with YAML.

image

Let me know if I can configure the loader to support this. Thanks!

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