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

* Update types for temp

Update types for `cleanup` callback to match the implementation https://github.com/bruce/node-temp/blob/0082942c735b241710d3074edf0e24de95d1903c/lib/temp.js#L231

* Update index.d.ts
This commit is contained in:
Daniel Mora
2019-04-25 17:24:10 -07:00
committed by Pranav Senthilnathan
parent 7392228cef
commit 4b7b454e31
+1 -1
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;