N
Nuxt3mo ago
bnason

Typing PublicRuntimeConfig

I have an array of objects in my public runtime config section that is being typed as {}[] so I added an index.d.ts file to type it correctly. Only, I lose all other inferred types for the rest of the public runtime config. Shouldn't it simply "merge" mine with the auto generated one instead? Is there any way to do that?
1 Reply
bnason
bnason3mo ago
declare module '@nuxt/schema' {
interface PublicRuntimeConfig {
orgs: { name: string }
}
}

export {}
declare module '@nuxt/schema' {
interface PublicRuntimeConfig {
orgs: { name: string }
}
}

export {}
Want results from more Discord servers?
Add your server