This repository was archived by the owner on Apr 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
packages/schema/src/types/global Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,21 @@ export interface ViteHot {
14
14
decline ( ) : void
15
15
invalidate ( ) : void
16
16
17
- on : ( event : 'any' , cb : ( payload : any ) => void ) => void
17
+ on ( event : any , cb : ( payload : any ) => void ) : void
18
+ send ( event : any , data ?: any ) : void
19
+ }
20
+
21
+ export interface ViteGlobOptions {
22
+ as ?: string
18
23
}
19
24
20
25
export interface ViteImportMeta {
21
26
/** Vite client HMR API - see https://vitejs.dev/guide/api-hmr.html */
22
27
readonly hot ?: ViteHot
23
28
24
29
/** vite glob import utility - https://vitejs.dev/guide/features.html#glob-import */
25
- glob ?( pattern : string ) : Record < string , ( ) => Promise < Record < string , any > > >
30
+ glob ?( pattern : string , options ?: ViteGlobOptions ) : Record < string , ( ) => Promise < Record < string , any > > >
26
31
27
32
/** vite glob import utility - https://vitejs.dev/guide/features.html#glob-import */
28
- globEager ?( pattern : string ) : Record < string , Record < string , any > >
33
+ globEager ?( pattern : string , options ?: ViteGlobOptions ) : Record < string , Record < string , any > >
29
34
}
You can’t perform that action at this time.
0 commit comments