diff --git a/types/raven/index.d.ts b/types/raven/index.d.ts index eec1b00f2c..21aee49169 100644 --- a/types/raven/index.d.ts +++ b/types/raven/index.d.ts @@ -10,6 +10,7 @@ import { IncomingMessage, ServerResponse } from 'http'; import { EventEmitter } from 'events'; export const version: string; +export function config(options?: ConstructorOptions): Client; export function config(dsn?: string | false, options?: ConstructorOptions): Client; export function wrap(func: () => T): () => T; export function wrap(options: any, func: () => T): () => T; diff --git a/types/raven/raven-tests.ts b/types/raven/raven-tests.ts index 4d96e7eafa..71f9b54038 100644 --- a/types/raven/raven-tests.ts +++ b/types/raven/raven-tests.ts @@ -9,6 +9,10 @@ Raven.config(dsn, { autoBreadcrumbs: false, }); console.log(Raven.version); + +Raven.config({ + release: 'foobar' +}); Raven.config(dsn).install({ captureUnhandledRejections: true }); client.setContext({}); client.on('logged', () => { });