Use {} not Object for unknown options type

This commit is contained in:
Nathan Shively-Sanders
2017-06-01 14:30:48 -07:00
parent b89cbeeb5b
commit 62dd9fbe3f

View File

@@ -2597,8 +2597,8 @@ declare module "fs" {
*/
export function mkdtempSync(prefix: string): string;
export function readdir(path: string | Buffer, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void;
export function readdir(path: string | Buffer, options: string | Object, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void;
export function readdirSync(path: string | Buffer, options?: string | Object): string[];
export function readdir(path: string | Buffer, options: string | {}, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void;
export function readdirSync(path: string | Buffer, options?: string | {}): string[];
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 | number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void;