elk/modules/pwa/types.ts

16 lines
450 B
TypeScript
Raw Normal View History

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