Skip to content

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

Description

@ArendPeter

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions