Skip to content

Commit 94fc4ef

Browse files
committed
chore: fix type error
1 parent 681378a commit 94fc4ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/devtools/src/module-main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export async function enableModule(options: ModuleOptions, nuxt: Nuxt) {
3535
}
3636

3737
// Determine if user aware devtools, by checking the presentation in the config
38-
const enabledExplicitly = (nuxt.options.devtools === true)
39-
|| (nuxt.options.devtools && nuxt.options.devtools.enabled)
38+
const enabledExplicitly = (nuxt.options.devtools === true as unknown)
39+
|| (nuxt.options.devtools && (nuxt.options.devtools as unknown as ModuleOptions).enabled)
4040
|| !!nuxt.options.modules.find(m => m === '@nuxt/devtools' || m === '@nuxt/devtools-edge' || m === '@nuxt/devtools-nightly')
4141

4242
await nuxt.callHook('devtools:before')

0 commit comments

Comments
 (0)