Skip to content

Commit

Permalink
fix: @nuxt/schema module augmentation (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored Nov 26, 2023
1 parent 199d5db commit 8bb37b2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@vite-pwa/nuxt",
"type": "module",
"version": "0.3.1",
"packageManager": "pnpm@8.10.5",
"packageManager": "pnpm@8.11.0",
"description": "Zero-config PWA for Nuxt 3",
"author": "antfu <[email protected]>",
"license": "MIT",
Expand Down
1 change: 1 addition & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"generate": "nuxi generate"
},
"devDependencies": {
"@vite-pwa/nuxt": "workspace:*",
"nuxt": "^3.8.2"
}
}
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ export interface ModuleOptions extends PwaModuleOptions {}

declare module '@nuxt/schema' {
interface NuxtConfig {
['vuetify']?: Partial<ModuleOptions>
['pwa']?: Partial<ModuleOptions>
}
interface NuxtOptions {
['vuetify']?: ModuleOptions
['pwa']?: ModuleOptions
}
}

0 comments on commit 8bb37b2

Please sign in to comment.