From 52b7dcaed977d173907ba515cf941180c5ba08e0 Mon Sep 17 00:00:00 2001 From: Chris Gibb Date: Sat, 29 Jul 2017 23:21:10 -0400 Subject: [PATCH] cast before access --- src/CheckForUpdateProcess.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CheckForUpdateProcess.ts b/src/CheckForUpdateProcess.ts index a47b4c8cc..ec74f6e34 100644 --- a/src/CheckForUpdateProcess.ts +++ b/src/CheckForUpdateProcess.ts @@ -44,7 +44,7 @@ process.on } } ); -process.on("uncaughtException",function(err : string){ +(process as NodeJS.EventEmitter).on("uncaughtException",function(err : string){ console.log(err); flags.done = true; flags.failure = true;