From 612743082da80ad50f397d1676d655477a6ecc9a Mon Sep 17 00:00:00 2001 From: Jordan Amos Date: Mon, 18 Dec 2017 15:28:56 -0500 Subject: [PATCH] add allowDuplicates to RavenOptions typescript definition --- typescript/raven-tests.ts | 3 ++- typescript/raven.d.ts | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/typescript/raven-tests.ts b/typescript/raven-tests.ts index 9268e5200727..6238428f8320 100644 --- a/typescript/raven-tests.ts +++ b/typescript/raven-tests.ts @@ -29,7 +29,8 @@ var options: Raven.RavenOptions = { }, breadcrumbCallback: function (data) { return data - } + }, + allowDuplicates: true }; Raven.config('https://public@sentry.io/1', options).install(); diff --git a/typescript/raven.d.ts b/typescript/raven.d.ts index 222a873a5186..a45cdc55dc57 100644 --- a/typescript/raven.d.ts +++ b/typescript/raven.d.ts @@ -87,6 +87,11 @@ declare module Raven { * A sampling rate to apply to events. A value of 0.0 will send no events, and a value of 1.0 will send all events (default). */ sampleRate?: number; + + /** + * Should raven send duplicate errors. A value of false will not send duplicate errors (default). + */ + allowDuplicates?: boolean; } interface RavenInstrumentationOptions {