mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Make the second argument to node-temp.path optional.
This commit is contained in:
Vendored
+2
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user