2023-01-04 13:26:30 +00:00
|
|
|
import type { ManifestOptions, VitePWAOptions } from 'vite-plugin-pwa'
|
|
|
|
import type { Overwrite } from '../../types/utils'
|
2022-12-17 23:29:16 +00:00
|
|
|
|
2023-01-04 13:26:30 +00:00
|
|
|
export type VitePWANuxtOptions = Overwrite<Partial<VitePWAOptions>, {
|
|
|
|
manifest?: () => Promise<Partial<ManifestOptions>>
|
|
|
|
}>
|
2022-12-17 23:29:16 +00:00
|
|
|
|
|
|
|
declare module '@nuxt/schema' {
|
|
|
|
interface NuxtConfig {
|
|
|
|
pwa?: { [K in keyof VitePWANuxtOptions]?: Partial<VitePWANuxtOptions[K]> }
|
|
|
|
}
|
|
|
|
interface NuxtOptions {
|
|
|
|
pwa: VitePWANuxtOptions
|
|
|
|
}
|
|
|
|
}
|