Skip to content

Commit eefe3f1

Browse files
committed
update .eslintignore;update index.d.ts resolve return type
1 parent c70d945 commit eefe3f1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.eslintignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/test.js
22
/node-*
3-
/lib/events.js
3+
/lib/events.js
4+
/test/additional-modules/my-es-module/index.js

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export interface VMRequire {
8282
/** Collection of mock modules (both external or built-in). */
8383
mock?: any;
8484
/* 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 | { path: string } | undefined;
85+
resolve?: (moduleName: string, parentDirname: string) => string | { path: string, module?: string } | undefined;
8686
/** Custom require to require host and built-in modules. */
8787
customRequire?: (id: string) => any;
8888
/** Load modules in strict mode. (default: true) */

0 commit comments

Comments
 (0)