Skip to content

Commit

Permalink
chore: remove unused ts-expect-error comments
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Nov 4, 2024
1 parent 618a478 commit 0c39020
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export default defineNuxtModule<ModuleOptions>({
// Extra bindings for the project
bindings: {
hyperdrive: {},
// @ts-expect-error nitro.cloudflare.wrangler is not yet typed
compatibilityFlags: nuxt.options.nitro.cloudflare?.wrangler?.compatibility_flags
},
// Cloudflare Access
Expand All @@ -79,12 +78,9 @@ export default defineNuxtModule<ModuleOptions>({
runtimeConfig.hub = hub
runtimeConfig.public.hub = {}
// Make sure to tell Nitro to not generate the wrangler.toml file
// @ts-expect-error nitro.cloudflare.wrangler is not yet typed
delete nuxt.options.nitro.cloudflare?.wrangler?.compatibility_flags
// @ts-expect-error nitro.cloudflare.wrangler is not yet typed
if (nuxt.options.nitro.cloudflare?.wrangler && Object.keys(nuxt.options.nitro.cloudflare.wrangler).length) {
log.warn('The `nitro.cloudflare.wrangler` defined options are not supported by NuxtHub, ignoring...')
// @ts-expect-error nitro.cloudflare.wrangler is not yet typed
nuxt.options.nitro.cloudflare.wrangler = {}
}
// validate remote option
Expand Down

0 comments on commit 0c39020

Please sign in to comment.