mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Use {} not Object for unknown options type
This commit is contained in:
4
types/node/index.d.ts
vendored
4
types/node/index.d.ts
vendored
@@ -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