From b6874ee01473292f485b68a2a0488441495067ae Mon Sep 17 00:00:00 2001 From: John Vilk Date: Fri, 27 Sep 2013 15:00:04 -0400 Subject: [PATCH] fs.realpath's cache is an *object literal*, not a string or a boolean. --- node/node.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/node.d.ts b/node/node.d.ts index 3c93a9bf3..051293564 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -754,8 +754,8 @@ declare module "fs" { export function readlink(path: string, callback?: (err: Error, linkString: string) =>any): void; export function readlinkSync(path: string): string; export function realpath(path: string, callback?: (err: Error, resolvedPath: string) =>any): void; - export function realpath(path: string, cache: string, callback: (err: Error, resolvedPath: string) =>any): void; - export function realpathSync(path: string, cache?: string): void; + export function realpath(path: string, cache: {[path: string]: string}, callback: (err: Error, resolvedPath: string) =>any): void; + export function realpathSync(path: string, cache?: {[path: string]: string}): void; export function unlink(path: string, callback?: Function): void; export function unlinkSync(path: string): void; export function rmdir(path: string, callback?: Function): void;