diff --git a/packages/schema/src/types/global/vite.ts b/packages/schema/src/types/global/vite.ts index eafddced7d3..18979845e3e 100644 --- a/packages/schema/src/types/global/vite.ts +++ b/packages/schema/src/types/global/vite.ts @@ -20,6 +20,10 @@ export interface ViteHot { export interface ViteGlobOptions { as?: string + eager?: boolean + import?: string + query?: string | Record + 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 Promise>> - - /** vite glob import utility - https://vitejs.dev/guide/features.html#glob-import */ - globEager?(pattern: string, options?: ViteGlobOptions): Record> + glob (glob: string | string[], options?: ViteGlobOptions): Record Promise>> }