From d39e7a312593c58defa266cd5f1d7e438a30f37c Mon Sep 17 00:00:00 2001 From: John Vilk Date: Fri, 27 Sep 2013 15:20:58 -0400 Subject: [PATCH] In fs's truncate functions, 'len' is optional (and defaults to 0). --- node/node.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/node/node.d.ts b/node/node.d.ts index 051293564..62eed025a 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -725,10 +725,12 @@ declare module "fs" { export function rename(oldPath: string, newPath: string, callback?: Function): void; export function renameSync(oldPath: string, newPath: string): void; + export function truncate(path: string, callback?: Function): void; export function truncate(path: string, len: number, callback?: Function): void; - export function truncateSync(path: string, len: number): void; + export function truncateSync(path: string, len?: number): void; + export function ftruncate(fd: string, callback?: Function): void; export function ftruncate(fd: string, len: number, callback?: Function): void; - export function ftruncateSync(fd: string, len: number): 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;