Update cleanup parameter types for node-temp (#34874)

* Update types for temp

Update types for `cleanup` callback to match the implementation 0082942c73/lib/temp.js (L231)

* Update index.d.ts
This commit is contained in:
Daniel Mora
2019-04-25 20:24:10 -04:00
committed by Pranav Senthilnathan
parent 7392228cef
commit 4b7b454e31

View File

@@ -38,7 +38,7 @@ declare namespace temp {
function path(affixes?: string | AffixOptions, defaultPrefix?: string): string;
function cleanup(callback?: (result: boolean | Stats) => void): void;
function cleanup(callback?: (err: any, result: Stats) => void): void;
function cleanupSync(): boolean | Stats;