diff --git a/src/@types/module.d.ts b/src/@types/module.d.ts index 1a75b6d1d..75fadc3b9 100644 --- a/src/@types/module.d.ts +++ b/src/@types/module.d.ts @@ -26,15 +26,19 @@ declare module 'module' { * which doesn't have a file path. */ filename: string | null; + path: string; + paths: string[]; }; export function _resolveFilename( request: string, parent: Parent | undefined, - isMain: boolean, + isMain?: boolean, options?: Record, ): string; + export function _nodeModulePaths(path: string): string[]; + interface LoadFnOutput { // Added in https://github.com/nodejs/node/pull/43164 responseURL?: string;