Skip to content

Commit

Permalink
fix: remove nuxt/schema augment
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Sep 10, 2024
1 parent 07fd72a commit 2a20ed0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ ${moduleImports.length ? `import type { ${moduleImports.join(', ')} } from './mo
${appShims.length ? `declare module '#app' {\n${appShims.join('\n')}\n}\n` : ''}
${schemaShims.length ? `declare module '@nuxt/schema' {\n${schemaShims.join('\n')}\n}\n` : ''}
${schemaShims.length ? `declare module 'nuxt/schema' {\n${schemaShims.join('\n')}\n}\n` : ''}
${moduleExports.length ? `\n${moduleExports.join('\n')}` : ''}
${isStub ? 'export * from "./module"' : ''}
${moduleReExports[0] ? `\nexport { ${moduleReExports[0].names.map(n => (n === 'default' ? '' : 'type ') + n).join(', ')} } from './module'` : ''}
Expand Down
12 changes: 0 additions & 12 deletions test/build.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ describe('module builder', () => {
interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
}
declare module 'nuxt/schema' {
interface NuxtHooks extends ModuleHooks {}
interface RuntimeConfig extends ModuleRuntimeConfig {}
interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
}
export { type ModuleHooks, type ModuleOptions, type ModulePublicRuntimeConfig, type ModuleRuntimeConfig, type ModuleRuntimeHooks, default } from './module'
"
`)
Expand All @@ -99,12 +93,6 @@ describe('module builder', () => {
interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
}
declare module 'nuxt/schema' {
interface NuxtHooks extends ModuleHooks {}
interface RuntimeConfig extends ModuleRuntimeConfig {}
interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
}
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
export { type ModuleHooks, type ModulePublicRuntimeConfig, type ModuleRuntimeConfig, type ModuleRuntimeHooks, default } from './module'
Expand Down

0 comments on commit 2a20ed0

Please sign in to comment.