File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import type { ModuleCacheMap, ViteNodeRunner } from './client'
4
4
5
5
export type Nullable < T > = T | null | undefined
6
6
export type Arrayable < T > = T | Array < T >
7
+ export type Awaitable < T > = T | PromiseLike < T >
7
8
8
9
export interface DepsHandlingOptions {
9
10
external ?: ( string | RegExp ) [ ]
@@ -41,7 +42,7 @@ export type HotContext = Omit<ViteHotContext, 'acceptDeps' | 'decline'>
41
42
42
43
export type FetchFunction = ( id : string ) => Promise < FetchResult >
43
44
44
- export type ResolveIdFunction = ( id : string , importer ?: string ) => Promise < ViteNodeResolveId | null >
45
+ export type ResolveIdFunction = ( id : string , importer ?: string ) => Awaitable < ViteNodeResolveId | null | undefined | void >
45
46
46
47
export type CreateHotContextFunction = ( runner : ViteNodeRunner , url : string ) => HotContext
47
48
You can’t perform that action at this time.
0 commit comments