Skip to content

Commit

Permalink
fix(module): correctly resolve withNuxt type (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala committed Mar 21, 2024
1 parent 9faa45e commit d706c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/module/src/modules/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export async function setupConfigGen(options: ModuleOptions, nuxt: Nuxt) {
async getContents() {
return [
'import type { FlatConfig } from "@nuxt/eslint-config/flat"',
'export { defineFlatConfigs } from "@nuxt/eslint-config/flat"',
'import { defineFlatConfigs } from "@nuxt/eslint-config/flat"',
'declare const configs: Promise<FlatConfig[]>',
'declare const withNuxt: typeof defineFlatConfigs',
'export default withNuxt',
'export { withNuxt }',
'export { withNuxt, defineFlatConfigs }',
].join('\n')
},
})
Expand Down

0 comments on commit d706c24

Please sign in to comment.