UNPKG

@hug/ngx-sentry

Version:

Angular wrapper for the official Sentry JavaScript SDK

23 lines (18 loc) 1.05 kB
import { BrowserOptions, User, ErrorHandlerOptions } from '@sentry/angular'; export { BrowserOptions, User } from '@sentry/angular'; import * as i0 from '@angular/core'; import { ModuleWithProviders, EnvironmentProviders } from '@angular/core'; type SentryOptions = BrowserOptions & Required<Pick<BrowserOptions, 'dsn' | 'environment' | 'release'>> & { tracePropagationTargets?: (string | RegExp)[]; }; declare const setSentryUser: (user: User | null) => void; declare const initSentry: (options: SentryOptions) => void; declare class NgxSentryModule { static forRoot(options?: ErrorHandlerOptions): ModuleWithProviders<NgxSentryModule>; static ɵfac: i0.ɵɵFactoryDeclaration<NgxSentryModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<NgxSentryModule, never, never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<NgxSentryModule>; } declare const provideSentry: (options?: ErrorHandlerOptions) => EnvironmentProviders; export { NgxSentryModule, initSentry, provideSentry, setSentryUser }; export type { SentryOptions };