diff --git a/node/index.d.ts b/node/index.d.ts index 54f9f53753..a52b0424de 100644 --- a/node/index.d.ts +++ b/node/index.d.ts @@ -2661,14 +2661,7 @@ declare module "path" { * Join all arguments together and normalize the resulting path. * Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown. * - * @param paths string paths to join. - */ - export function join(...paths: any[]): string; - /** - * Join all arguments together and normalize the resulting path. - * Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown. - * - * @param paths string paths to join. + * @param paths paths to join. */ export function join(...paths: string[]): string; /** @@ -3967,7 +3960,7 @@ declare module "v8" { Enabled = 1 } - interface HeapInfo { + interface HeapInfo { total_heap_size: number; total_heap_size_executable: number; total_physical_size: number; diff --git a/node/node-tests.ts b/node/node-tests.ts index 1be4a870ed..706e8b37f6 100644 --- a/node/node-tests.ts +++ b/node/node-tests.ts @@ -1034,7 +1034,7 @@ namespace path_tests { //'/foo/bar/baz/asdf' try { - path.join('foo', {}, 'bar'); + path.join('foo', 'bar'); } catch (error) {