Skip to content

Commit

Permalink
fix(types): mark module options fields as optional (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmeysner authored Jan 7, 2021
1 parent 8a45184 commit 7d75c28
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/pwa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { meta, metaRuntime } from './meta'
import { workbox } from './workbox'

interface PWAOptions {
meta?: MetaOptions | false
icon?: IconOptions | false
workbox?: WorkboxOptions | false
manifest?: ManifestOptions | false
meta?: Partial<MetaOptions> | false
icon?: Partial<IconOptions> | false
workbox?: Partial<WorkboxOptions> | false
manifest?: Partial<ManifestOptions> | false
}

export default async function pwa (moduleOptions: PWAOptions) {
Expand Down Expand Up @@ -70,11 +70,11 @@ export default async function pwa (moduleOptions: PWAOptions) {

declare module '@nuxt/types/config/index' {
interface NuxtOptions {
pwa?: PWAOptions
meta?: MetaOptions | false
icon?: IconOptions | false
workbox?: WorkboxOptions | false
manifest?: ManifestOptions | false
pwa?: Partial<PWAOptions>
meta?: Partial<MetaOptions> | false
icon?: Partial<IconOptions> | false
workbox?: Partial<WorkboxOptions> | false
manifest?: Partial<ManifestOptions> | false
}
}

Expand Down

0 comments on commit 7d75c28

Please sign in to comment.