From d50b01e3480e7618e1a0676355249b66e3d0c4b7 Mon Sep 17 00:00:00 2001 From: Lay Date: Thu, 1 Sep 2022 02:21:58 +0800 Subject: [PATCH] fix(schema): sync types of vite v3.x (#7104) Co-authored-by: Daniel Roe --- packages/schema/src/types/global/vite.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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>> }