Skip to content

Commit

Permalink
Merge pull request #401 from youngbob/fix-resolver-type
Browse files Browse the repository at this point in the history
Fix custom resolver type
  • Loading branch information
XmiliaH authored Feb 10, 2022
2 parents 532120d + b7f794d commit b4d9dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface VMRequire {
/** Collection of mock modules (both external or builtin). */
mock?: any;
/* An additional lookup function in case a module wasn't found in one of the traditional node lookup paths. */
resolve?: (moduleName: string, parentDirname: string) => string;
resolve?: (moduleName: string, parentDirname: string) => string | undefined;
/** Custom require to require host and built-in modules. */
customRequire?: (id: string) => any;
}
Expand Down

0 comments on commit b4d9dce

Please sign in to comment.