mirror of
https://github.com/elk-zone/elk.git
synced 2024-09-06 12:19:08 +01:00
16 lines
450 B
TypeScript
16 lines
450 B
TypeScript
import type { ManifestOptions, VitePWAOptions } from 'vite-plugin-pwa'
|
|
import type { Overwrite } from '../../types/utils'
|
|
|
|
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
|
|
}
|
|
}
|