@hug/ngx-sentry
Version:
Angular wrapper for the official Sentry JavaScript SDK
9 lines (8 loc) • 510 B
TypeScript
import { Provider } from '@angular/core';
import { BrowserOptions, ErrorHandlerOptions, User } from '@sentry/angular';
export declare const NGX_SENTRY_PROVIDERS: (options?: ErrorHandlerOptions) => Provider[];
export type SentryOptions = BrowserOptions & Required<Pick<BrowserOptions, 'dsn' | 'environment' | 'release'>> & {
tracePropagationTargets?: (string | RegExp)[];
};
export declare const setSentryUser: (user: User | null) => void;
export declare const initSentry: (options: SentryOptions) => void;