Skip to content

Commit 4659ce0

Browse files
committed
add additional return type for resolve signature
1 parent 1da4415 commit 4659ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export interface VMRequire {
8282
/** Collection of mock modules (both external or built-in). */
8383
mock?: any;
8484
/* An additional lookup function in case a module wasn't found in one of the traditional node lookup paths. */
85-
resolve?: (moduleName: string, parentDirname: string) => string | undefined;
85+
resolve?: (moduleName: string, parentDirname: string) => string | { path: string } | undefined;
8686
/** Custom require to require host and built-in modules. */
8787
customRequire?: (id: string) => any;
8888
/** Load modules in strict mode. (default: true) */

0 commit comments

Comments
 (0)