From 4b7b454e31cf77d08a71aee6223a652d4d38da7f Mon Sep 17 00:00:00 2001 From: Daniel Mora <38921751+ww-daniel-mora@users.noreply.github.com> Date: Thu, 25 Apr 2019 20:24:10 -0400 Subject: [PATCH] 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 --- types/temp/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;