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

infer types for runtimeConfig #197

Closed
danielroe opened this issue Nov 8, 2021 · 1 comment · Fixed by nuxt/framework#3573
Closed

infer types for runtimeConfig #197

danielroe opened this issue Nov 8, 2021 · 1 comment · Fixed by nuxt/framework#3573
Labels

Comments

@danielroe
Copy link
Member

Follow-up on nuxt/framework#1783 (comment)

@rrmesquita
Copy link
Contributor

rrmesquita commented Feb 12, 2022

Hi @danielroe, where you are in this issue? I was able to get the framework to generate simple typeof results of the keys in the runtime config and output them on .nuxt/types/schema.d.ts which I found appropriate. Private ones are added as optional as they can be unavailable in certain contexts.

FYI: https://github.com/rrmesquita/framework/commit/ca999a70847beb8bbfc3da0cba78c6f8635f7bbb is a sketch of what it could look like

Thanks!

edit: remove invalid suggestion.

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