fix(schema): sync types of vite v3.x (#7104)

Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
Lay 2022-09-01 02:21:58 +08:00 committed by GitHub
parent 09c609ed54
commit d50b01e348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,10 @@ export interface ViteHot {
export interface ViteGlobOptions { export interface ViteGlobOptions {
as?: string as?: string
eager?: boolean
import?: string
query?: string | Record<string, string | number | boolean>
exhaustive?: boolean
} }
export interface ViteImportMeta { export interface ViteImportMeta {
@ -27,8 +31,5 @@ export interface ViteImportMeta {
readonly hot?: ViteHot readonly hot?: ViteHot
/** vite glob import utility - https://vitejs.dev/guide/features.html#glob-import */ /** vite glob import utility - https://vitejs.dev/guide/features.html#glob-import */
glob?(pattern: string, options?: ViteGlobOptions): Record<string, () => Promise<Record<string, any>>> glob (glob: string | 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>>
} }