diff --git a/types/temp/index.d.ts b/types/temp/index.d.ts index 1e8519a62f..9491331e96 100644 --- a/types/temp/index.d.ts +++ b/types/temp/index.d.ts @@ -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;