mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
In fs's truncate functions, 'len' is optional (and defaults to 0).
This commit is contained in:
1 parent
b6874ee014
commit
d39e7a3125
1 file changed
+4
-2
Vendored
+4
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user