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