Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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