Skip to content

Commit

Permalink
add additional return type for resolve signature
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-klaviyo committed Feb 2, 2023
1 parent 1da4415 commit 4659ce0
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 @@ -82,7 +82,7 @@ export interface VMRequire {
/** Collection of mock modules (both external or built-in). */
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 | undefined;
resolve?: (moduleName: string, parentDirname: string) => string | { path: string } | undefined;
/** Custom require to require host and built-in modules. */
customRequire?: (id: string) => any;
/** Load modules in strict mode. (default: true) */
Expand Down

0 comments on commit 4659ce0

Please sign in to comment.