fix: preserve `write` option in `NuxtTypeTemplate`

This commit is contained in:
Andrey Yolkin 2023-09-03 23:55:47 +03:00
parent 37d9bc5ce5
commit 7940c456b6
No known key found for this signature in database
GPG Key ID: 4A2899263001EA49
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ export interface ResolvedNuxtTemplate<Options = Record<string, any>> extends Nux
dst: string dst: string
} }
export type NuxtTypeTemplate<Options = Record<string, any>> = Omit<NuxtTemplate<Options>, 'write'> export interface NuxtTypeTemplate<Options = Record<string, any>> extends Omit<NuxtTemplate<Options>, 'write'> {
write?: true
}
type _TemplatePlugin<Options> = Omit<NuxtPlugin, 'src'> & NuxtTemplate<Options> type _TemplatePlugin<Options> = Omit<NuxtPlugin, 'src'> & NuxtTemplate<Options>
export interface NuxtPluginTemplate<Options = Record<string, any>> extends _TemplatePlugin<Options> { } export interface NuxtPluginTemplate<Options = Record<string, any>> extends _TemplatePlugin<Options> { }