From 7d75c285485efde4081127ff3bb899565a771c7e Mon Sep 17 00:00:00 2001 From: Jakub Meysner Date: Thu, 7 Jan 2021 15:24:54 +0100 Subject: [PATCH] fix(types): mark module options fields as optional (#420) --- src/pwa.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pwa.ts b/src/pwa.ts index 0409193e..86379fa5 100755 --- a/src/pwa.ts +++ b/src/pwa.ts @@ -8,10 +8,10 @@ import { meta, metaRuntime } from './meta' import { workbox } from './workbox' interface PWAOptions { - meta?: MetaOptions | false - icon?: IconOptions | false - workbox?: WorkboxOptions | false - manifest?: ManifestOptions | false + meta?: Partial | false + icon?: Partial | false + workbox?: Partial | false + manifest?: Partial | false } export default async function pwa (moduleOptions: PWAOptions) { @@ -70,11 +70,11 @@ export default async function pwa (moduleOptions: PWAOptions) { declare module '@nuxt/types/config/index' { interface NuxtOptions { - pwa?: PWAOptions - meta?: MetaOptions | false - icon?: IconOptions | false - workbox?: WorkboxOptions | false - manifest?: ManifestOptions | false + pwa?: Partial + meta?: Partial | false + icon?: Partial | false + workbox?: Partial | false + manifest?: Partial | false } }