Skip to content

Commit

Permalink
chore: fix pwa type
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jul 4, 2023
1 parent 2d8ec4a commit 5c1411b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@
"vitest": "^0.32.4",
"vue-tsc": "^1.8.3"
},
"pnpm": {
"patchedDependencies": {
"nuxt-security@0.13.1": "patches/nuxt-security@0.13.1.patch"
}
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
Expand Down
23 changes: 23 additions & 0 deletions patches/nuxt-security@0.13.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/dist/module.d.ts b/dist/module.d.ts
index db3d86728b99c2f8dadd7782483cd0ec40688703..972a0da26f04f58de9301e757a34d318f8d95ece 100644
--- a/dist/module.d.ts
+++ b/dist/module.d.ts
@@ -222,15 +222,15 @@ interface NuxtSecurityRouteRules {

declare module "@nuxt/schema" {
interface NuxtOptions {
- security: ModuleOptions;
+ security?: ModuleOptions;
}
}
declare module "nitropack" {
interface NitroRouteRules {
- security: NuxtSecurityRouteRules;
+ security?: NuxtSecurityRouteRules;
}
interface NitroRouteConfig {
- security: NuxtSecurityRouteRules;
+ security?: NuxtSecurityRouteRules;
}
}
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
12 changes: 9 additions & 3 deletions pnpm-lock.yaml

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

2 comments on commit 5c1411b

@KyoSakuyo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Firefox Android still cannot recognize elk as a PWA-install App.

@sxzz
Copy link
Member Author

@sxzz sxzz commented on 5c1411b Jul 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please create an issue?

Please sign in to comment.