We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 532120d + b7f794d commit b4d9dceCopy full SHA for b4d9dce
index.d.ts
@@ -20,7 +20,7 @@ export interface VMRequire {
20
/** Collection of mock modules (both external or builtin). */
21
mock?: any;
22
/* An additional lookup function in case a module wasn't found in one of the traditional node lookup paths. */
23
- resolve?: (moduleName: string, parentDirname: string) => string;
+ resolve?: (moduleName: string, parentDirname: string) => string | undefined;
24
/** Custom require to require host and built-in modules. */
25
customRequire?: (id: string) => any;
26
}
0 commit comments