mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 13:48:13 +00:00
Compare commits
2 Commits
37d9bc5ce5
...
f264b57067
Author | SHA1 | Date | |
---|---|---|---|
|
f264b57067 | ||
|
7940c456b6 |
@ -18,7 +18,11 @@ export interface NuxtPlugin {
|
||||
order?: number
|
||||
}
|
||||
|
||||
export interface NuxtTemplate<Options = Record<string, any>> {
|
||||
// Internal type for simpler NuxtTemplate interface extension
|
||||
|
||||
type TemplateDefaultOptions = Record<string, any>
|
||||
|
||||
export interface NuxtTemplate<Options = TemplateDefaultOptions> {
|
||||
/** resolved output file path (generated) */
|
||||
dst?: string
|
||||
/** The target filename once the template is copied into the Nuxt buildDir */
|
||||
@ -33,15 +37,17 @@ export interface NuxtTemplate<Options = Record<string, any>> {
|
||||
write?: boolean
|
||||
}
|
||||
|
||||
export interface ResolvedNuxtTemplate<Options = Record<string, any>> extends NuxtTemplate<Options> {
|
||||
export interface ResolvedNuxtTemplate<Options = TemplateDefaultOptions> extends NuxtTemplate<Options> {
|
||||
filename: string
|
||||
dst: string
|
||||
}
|
||||
|
||||
export type NuxtTypeTemplate<Options = Record<string, any>> = Omit<NuxtTemplate<Options>, 'write'>
|
||||
export interface NuxtTypeTemplate<Options = TemplateDefaultOptions> extends Omit<NuxtTemplate<Options>, 'write'> {
|
||||
write?: true
|
||||
}
|
||||
|
||||
type _TemplatePlugin<Options> = Omit<NuxtPlugin, 'src'> & NuxtTemplate<Options>
|
||||
export interface NuxtPluginTemplate<Options = Record<string, any>> extends _TemplatePlugin<Options> { }
|
||||
export interface NuxtPluginTemplate<Options = TemplateDefaultOptions> extends _TemplatePlugin<Options> { }
|
||||
|
||||
export interface NuxtApp {
|
||||
mainComponent?: string | null
|
||||
|
Loading…
Reference in New Issue
Block a user