Skip to content

Commit

Permalink
update .eslintignore;update index.d.ts resolve return type
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-klaviyo committed Feb 2, 2023
1 parent c70d945 commit eefe3f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/test.js
/node-*
/lib/events.js
/lib/events.js
/test/additional-modules/my-es-module/index.js
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 | { path: string } | undefined;
resolve?: (moduleName: string, parentDirname: string) => string | { path: string, module?: 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 eefe3f1

Please sign in to comment.