mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Now it matches Node.js fs::open* definition (#10032)
From Node.js API Reference (https://nodejs.org/dist/latest-v6.x/docs/api/fs.html#fs_fs_open_path_flags_mode_callback): fs.open(path, flags[, mode], callback)# Added in: v0.0.2 path <String> | <Buffer> flags <String> | <Number> mode <Integer> callback <Function> fs.openSync(path, flags[, mode])# Added in: v0.1.21 path <String> | <Buffer> flags <String> | <Number> mode <Integer>
This commit is contained in:
committed by
Masahiro Wakame
parent
22bc90a0b2
commit
7a6da49f3a
Vendored
+2
-2
@@ -1542,10 +1542,10 @@ declare module "fs" {
|
||||
export function close(fd: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
|
||||
export function closeSync(fd: number): void;
|
||||
export function open(path: string | Buffer, flags: string, callback?: (err: NodeJS.ErrnoException, fd: number) => any): void;
|
||||
export function open(path: string | Buffer, flags: number, mode: number, callback?: (err: NodeJS.ErrnoException, fd: number) => any): void;
|
||||
export function open(path: string | Buffer, flags: string, mode: number, callback?: (err: NodeJS.ErrnoException, fd: number) => any): void;
|
||||
export function open(path: string | Buffer, flags: string, mode: string, callback?: (err: NodeJS.ErrnoException, fd: number) => any): void;
|
||||
export function openSync(path: string | Buffer, flags: number, mode?: number): number;
|
||||
export function openSync(path: string | Buffer, flags: string, mode?: number): number;
|
||||
export function openSync(path: string | Buffer, flags: string, mode?: string): number;
|
||||
export function utimes(path: string | Buffer, atime: number, mtime: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
|
||||
export function utimes(path: string | Buffer, atime: Date, mtime: Date, callback?: (err?: NodeJS.ErrnoException) => void): void;
|
||||
export function utimesSync(path: string | Buffer, atime: number, mtime: number): void;
|
||||
|
||||
Reference in New Issue
Block a user