Make the second argument to node-temp.path optional.

This commit is contained in:
Karl-Aksel Puulmann
2016-01-05 16:24:54 +02:00
parent 419793fb79
commit 91f0e294e4
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -31,8 +31,8 @@ declare module "temp" {
export function openSync(affixes: string): { path: string, fd: number };
export function openSync(affixes: AffixOptions): { path: string, fd: number };
export function path(affixes: string, defaultPrefix: string): string;
export function path(affixes: AffixOptions, defaultPrefix: string): string;
export function path(affixes: string, defaultPrefix?: string): string;
export function path(affixes: AffixOptions, defaultPrefix?: string): string;
export function cleanup(callback?: (result: boolean | {files: number, dirs?: number}) => void): void;