Skip to content

Commit 2a20ed0

Browse files
committed
fix: remove nuxt/schema augment
1 parent 07fd72a commit 2a20ed0

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

Diff for: src/commands/build.ts

-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ ${moduleImports.length ? `import type { ${moduleImports.join(', ')} } from './mo
237237
238238
${appShims.length ? `declare module '#app' {\n${appShims.join('\n')}\n}\n` : ''}
239239
${schemaShims.length ? `declare module '@nuxt/schema' {\n${schemaShims.join('\n')}\n}\n` : ''}
240-
${schemaShims.length ? `declare module 'nuxt/schema' {\n${schemaShims.join('\n')}\n}\n` : ''}
241240
${moduleExports.length ? `\n${moduleExports.join('\n')}` : ''}
242241
${isStub ? 'export * from "./module"' : ''}
243242
${moduleReExports[0] ? `\nexport { ${moduleReExports[0].names.map(n => (n === 'default' ? '' : 'type ') + n).join(', ')} } from './module'` : ''}

Diff for: test/build.spec.ts

-12
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@ describe('module builder', () => {
7171
interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
7272
}
7373
74-
declare module 'nuxt/schema' {
75-
interface NuxtHooks extends ModuleHooks {}
76-
interface RuntimeConfig extends ModuleRuntimeConfig {}
77-
interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
78-
}
79-
8074
export { type ModuleHooks, type ModuleOptions, type ModulePublicRuntimeConfig, type ModuleRuntimeConfig, type ModuleRuntimeHooks, default } from './module'
8175
"
8276
`)
@@ -99,12 +93,6 @@ describe('module builder', () => {
9993
interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
10094
}
10195
102-
declare module 'nuxt/schema' {
103-
interface NuxtHooks extends ModuleHooks {}
104-
interface RuntimeConfig extends ModuleRuntimeConfig {}
105-
interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
106-
}
107-
10896
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
10997
11098
export { type ModuleHooks, type ModulePublicRuntimeConfig, type ModuleRuntimeConfig, type ModuleRuntimeHooks, default } from './module'

0 commit comments

Comments
 (0)