mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
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:
committed by
Pranav Senthilnathan
parent
7392228cef
commit
4b7b454e31
2
types/temp/index.d.ts
vendored
2
types/temp/index.d.ts
vendored
@@ -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