From e442870348a2193a1e2b94d82b3c3cea560eb8a5 Mon Sep 17 00:00:00 2001 From: John Vilk Date: Fri, 27 Sep 2013 14:51:25 -0400 Subject: [PATCH] Whoops. fd is a *string*, not a *number*. --- 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 341b63c469..3c93a9bf30 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -727,8 +727,8 @@ declare module "fs" { export function renameSync(oldPath: string, newPath: string): void; export function truncate(path: string, len: number, callback?: Function): void; export function truncateSync(path: string, len: number): void; - export function ftruncate(fd: number, len: number, callback?: Function): void; - export function ftruncateSync(fd: number, len: number): void; + export function ftruncate(fd: string, len: number, callback?: Function): void; + export function ftruncateSync(fd: string, len: number): void; export function chown(path: string, uid: number, gid: number, callback?: Function): void; export function chownSync(path: string, uid: number, gid: number): void; export function fchown(fd: string, uid: number, gid: number, callback?: Function): void;