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