mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
fix(schema): sync types of vite v3.x (#7104)
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
09c609ed54
commit
d50b01e348
@ -20,6 +20,10 @@ export interface ViteHot {
|
||||
|
||||
export interface ViteGlobOptions {
|
||||
as?: string
|
||||
eager?: boolean
|
||||
import?: string
|
||||
query?: string | Record<string, string | number | boolean>
|
||||
exhaustive?: boolean
|
||||
}
|
||||
|
||||
export interface ViteImportMeta {
|
||||
@ -27,8 +31,5 @@ export interface ViteImportMeta {
|
||||
readonly hot?: ViteHot
|
||||
|
||||
/** vite glob import utility - https://vitejs.dev/guide/features.html#glob-import */
|
||||
glob?(pattern: string, options?: ViteGlobOptions): Record<string, () => Promise<Record<string, any>>>
|
||||
|
||||
/** vite glob import utility - https://vitejs.dev/guide/features.html#glob-import */
|
||||
globEager?(pattern: string, options?: ViteGlobOptions): Record<string, Record<string, any>>
|
||||
glob (glob: string | string[], options?: ViteGlobOptions): Record<string, () => Promise<Record<string, any>>>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user