mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
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:
committed by
Pranav Senthilnathan
parent
7392228cef
commit
4b7b454e31
Vendored
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user