Skip to content

Commit d706c24

Browse files
authoredMar 21, 2024··
fix(module): correctly resolve withNuxt type (#350)
1 parent 9faa45e commit d706c24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/module/src/modules/config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ export async function setupConfigGen(options: ModuleOptions, nuxt: Nuxt) {
3232
async getContents() {
3333
return [
3434
'import type { FlatConfig } from "@nuxt/eslint-config/flat"',
35-
'export { defineFlatConfigs } from "@nuxt/eslint-config/flat"',
35+
'import { defineFlatConfigs } from "@nuxt/eslint-config/flat"',
3636
'declare const configs: Promise<FlatConfig[]>',
3737
'declare const withNuxt: typeof defineFlatConfigs',
3838
'export default withNuxt',
39-
'export { withNuxt }',
39+
'export { withNuxt, defineFlatConfigs }',
4040
].join('\n')
4141
},
4242
})

0 commit comments

Comments
 (0)
Please sign in to comment.