File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -447,12 +447,12 @@ export const appConfigDeclarationTemplate: NuxtTemplate = {
447
447
const configPaths = app . configs . map ( path => relative ( typesDir , path ) . replace ( EXTENSION_RE , '' ) )
448
448
449
449
return `
450
- import type { CustomAppConfig } from 'nuxt/schema'
450
+ import type { AppConfigInput, CustomAppConfig } from 'nuxt/schema'
451
451
import type { Defu } from 'defu'
452
452
${ configPaths . map ( ( id : string , index : number ) => `import ${ `cfg${ index } ` } from ${ JSON . stringify ( id ) } ` ) . join ( '\n' ) }
453
453
454
454
declare global {
455
- const defineAppConfig: <T>(appConfig: T ) => T
455
+ const defineAppConfig: <C extends AppConfigInput> (config: C ) => C
456
456
}
457
457
458
458
declare const inlineConfig = ${ JSON . stringify ( nuxt . options . appConfig , null , 2 ) }
You can’t perform that action at this time.
0 commit comments