diff --git a/index.d.ts b/index.d.ts index be5983f..9284e7f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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; }