docs: correct manually typing runtime config example (#22393)

This commit is contained in:
Dawid Kopys 2023-07-29 20:14:08 +02:00 committed by GitHub
parent ae8a2fb521
commit 7e05b6e785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,9 +150,9 @@ It is also possible to type your runtime config manually:
declare module 'nuxt/schema' { declare module 'nuxt/schema' {
interface RuntimeConfig { interface RuntimeConfig {
apiSecret: string apiSecret: string
public: { }
apiBase: string interface PublicRuntimeConfig {
} apiBase: string
} }
} }
// It is always important to ensure you import/export something when augmenting a type // It is always important to ensure you import/export something when augmenting a type