mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-09-15 05:30:24 +00:00
Use {} not Object for unknown options type
This commit is contained in:
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user