File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 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'
44
55export type Nullable < T > = T | null | undefined
66export type Arrayable < T > = T | Array < T >
7+ export type Awaitable < T > = T | PromiseLike < T >
78
89export interface DepsHandlingOptions {
910 external ?: ( string | RegExp ) [ ]
@@ -41,7 +42,7 @@ export type HotContext = Omit<ViteHotContext, 'acceptDeps' | 'decline'>
4142
4243export type FetchFunction = ( id : string ) => Promise < FetchResult >
4344
44- export type ResolveIdFunction = ( id : string , importer ?: string ) => Promise < ViteNodeResolveId | null >
45+ export type ResolveIdFunction = ( id : string , importer ?: string ) => Awaitable < ViteNodeResolveId | null | undefined | void >
4546
4647export type CreateHotContextFunction = ( runner : ViteNodeRunner , url : string ) => HotContext
4748
You can’t perform that action at this time.
0 commit comments