diff --git a/packages/browser/src/client.ts b/packages/browser/src/client.ts index 996600c8127f..f2842ae3609e 100644 --- a/packages/browser/src/client.ts +++ b/packages/browser/src/client.ts @@ -8,33 +8,17 @@ import { Breadcrumbs } from './integrations'; import { BREADCRUMB_INTEGRATION_ID } from './integrations/breadcrumbs'; import { BrowserTransportOptions } from './transports/types'; -export interface BaseBrowserOptions { - /** - * A pattern for error URLs which should exclusively be sent to Sentry. - * This is the opposite of {@link Options.denyUrls}. - * By default, all errors will be sent. - */ - allowUrls?: Array; - - /** - * A pattern for error URLs which should not be sent to Sentry. - * To allow certain errors instead, use {@link Options.allowUrls}. - * By default, all errors will be sent. - */ - denyUrls?: Array; -} - /** * Configuration options for the Sentry Browser SDK. * @see @sentry/types Options for more information. */ -export interface BrowserOptions extends Options, BaseBrowserOptions {} +export type BrowserOptions = Options; /** * Configuration options for the Sentry Browser SDK Client class * @see BrowserClient for more information. */ -export interface BrowserClientOptions extends ClientOptions, BaseBrowserOptions {} +export type BrowserClientOptions = ClientOptions; /** * The Sentry Browser SDK Client. diff --git a/packages/types/src/options.ts b/packages/types/src/options.ts index ffb24895e42c..3eaf172763ef 100644 --- a/packages/types/src/options.ts +++ b/packages/types/src/options.ts @@ -190,6 +190,24 @@ export interface ClientOptions; + + /** + * A pattern for error URLs which should not be sent to Sentry. + * To allow certain errors instead, use {@link Options.allowUrls}. + * By default, all errors will be sent. + * + * Requires the use of the `InboundFilters` integration. + */ + denyUrls?: Array; + /** * Function to compute tracing sample rate dynamically and filter unwanted traces. *