We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1da4415 commit 4659ce0Copy full SHA for 4659ce0
index.d.ts
@@ -82,7 +82,7 @@ export interface VMRequire {
82
/** Collection of mock modules (both external or built-in). */
83
mock?: any;
84
/* 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;
+ resolve?: (moduleName: string, parentDirname: string) => string | { path: string } | undefined;
86
/** Custom require to require host and built-in modules. */
87
customRequire?: (id: string) => any;
88
/** Load modules in strict mode. (default: true) */
0 commit comments