Skip to content

Commit

Permalink
[doc] fix the types for async functions
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Mar 24, 2021
1 parent ac3f606 commit b6643a0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Expand Up @@ -270,17 +270,20 @@ interface AffixOptions {

function track(value?: boolean): typeof temp;

function mkdir(affixes?: string | AffixOptions, callback?: (err: any, dirPath: string) => void): Promise<void>;
function mkdir(affixes: string | AffixOptions | undefined, callback: (err: any, dirPath: string) => void): void;
function mkdir(affixes?: string | AffixOptions): Promise<string>;

function mkdirSync(affixes?: string | AffixOptions): string;

function open(affixes?: string | AffixOptions, callback?: (err: any, result: OpenFile) => void): Promise<void>;
function open(affixes: string | AffixOptions | undefined, callback: (err: any, result: OpenFile) => void): void;
function open(affixes?: string | AffixOptions): Promise<OpenFile>;

function openSync(affixes?: string | AffixOptions): OpenFile;

function path(affixes?: string | AffixOptions, defaultPrefix?: string): string;

function cleanup(callback?: (err: any, result: Stats) => void): Promise<void>;
function cleanup(callback: (err: any, result: Stats) => void): void;
function cleanup(): Promise<Stats>;

function cleanupSync(): boolean | Stats;

Expand Down

0 comments on commit b6643a0

Please sign in to comment.