From 841d4801dc21f82c2101f6ff86c2b1df8acc3fdd Mon Sep 17 00:00:00 2001 From: Daniel Herman Date: Mon, 7 Aug 2017 13:43:36 -0400 Subject: [PATCH] Remove non-existent argument from `context` The `onErr` argument no longer exists on the `context` and `wrap` methods as of Raven 2.0.0 https://github.com/getsentry/raven-node/commit/8a88d5d4f8ed92b62345c6bb3f79f98de65461fe --- types/raven/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/raven/index.d.ts b/types/raven/index.d.ts index 09ba6f6b4c..173984d835 100644 --- a/types/raven/index.d.ts +++ b/types/raven/index.d.ts @@ -11,8 +11,8 @@ import { EventEmitter } from 'events'; export const version: string; export function config(dsn: string | false, options?: ConstructorOptions): Client; -export function wrap(func: () => void, onErr?: () => void): () => void; -export function wrap(options: any, func: () => void, onErr?: () => void): () => void; +export function wrap(func: () => void): () => void; +export function wrap(options: any, func: () => void): () => void; export function interceptErr(ctx: any): Client; export function setContext(ctx: any): Client; export function captureException(e: Error, cb?: CaptureCallback): string; @@ -23,8 +23,8 @@ export function mergeContext(ctx: any): Client; export function getContext(): any; export function requestHandler(): (req: IncomingMessage, res: ServerResponse, next: () => void) => void; export function errorHandler(): (e: Error, req: IncomingMessage, res: ServerResponse, next: () => void) => void; -export function context(ctx: any, func: () => void, onErr?: () => void): Client; -export function context(func: () => void, onErr?: () => void): Client; +export function context(ctx: any, func: () => void): Client; +export function context(func: () => void): Client; export function captureBreadcrumb(breadcrumb: any): void; export function disableConsoleAlerts(): void; export function consoleAlert(msg: string): void; @@ -46,8 +46,8 @@ export class Client extends EventEmitter { setUserContext(data: UserData): void; setDataCallback(fn: DataCallback): void; setShouldSendCallback(fn: ShouldSendCallback): this; - context(ctx: any, func: () => void, onErr?: () => void): Client; - context(func: () => void, onErr?: () => void): Client; + context(ctx: any, func: () => void): void; + context(func: () => void): Client; process(kwargs: any, cb?: () => void): void; process(eventId: string, kwargs: any, cb?: () => void): void; }