Skip to content

Commit 6ebdec4

Browse files
committed
fix: type nuxt.options as any to allow setting .bridge property
1 parent fbc7351 commit 6ebdec4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ export default defineNuxtModule({
3434
} as BridgeConfig,
3535
async setup (opts, nuxt) {
3636
// Disable if users explicitly set to false
37-
if (nuxt.options.bridge === false) { return }
37+
if ((nuxt.options as any).bridge === false) { return }
3838

3939
// Nuxt kit depends on this flag to check bridge compatibility
40-
nuxt.options.bridge = nuxt.options.bridge || true
40+
(nuxt.options as any).bridge = (nuxt.options as any).bridge || true
4141

4242
const _require = createRequire(import.meta.url)
4343

0 commit comments

Comments
 (0)