From 5c0e716dbf4275f71ef6b68fc0cfd9b141e5677f Mon Sep 17 00:00:00 2001 From: danprince Date: Thu, 19 Oct 2017 11:22:15 +0100 Subject: [PATCH] add error param to types for onBeforeNotify callback --- lib/bugsnag.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bugsnag.d.ts b/lib/bugsnag.d.ts index 42a52b1..1305315 100644 --- a/lib/bugsnag.d.ts +++ b/lib/bugsnag.d.ts @@ -20,7 +20,7 @@ declare namespace bugsnag { autoNotify(cb: () => void): any; autoNotify(options: NotifyOptions, cb: () => void): any; shouldNotify(): boolean; - onBeforeNotify(cb: (notification: any) => boolean | void): void; + onBeforeNotify(cb: (notification: any) => boolean | void, error?: Error): void; } interface ConfigurationOptions {