@backtrace/browser
Version:
Backtrace-JavaScript web browser integration
28 lines (27 loc) • 1.27 kB
TypeScript
import { BacktraceCoreClient } from '@backtrace/sdk-core';
import { BacktraceConfiguration } from './BacktraceConfiguration.js';
import { BacktraceClientBuilder } from './builder/BacktraceClientBuilder.js';
import { BacktraceClientSetup } from './builder/BacktraceClientSetup.js';
export declare class BacktraceClient<O extends BacktraceConfiguration = BacktraceConfiguration> extends BacktraceCoreClient<O> {
private readonly _disposeController;
constructor(clientSetup: BacktraceClientSetup<O>);
static builder(options: BacktraceConfiguration): BacktraceClientBuilder;
/**
* Initializes the client. If the client already exists, the available instance
* will be returned and all other options will be ignored.
* @param options client configuration
* @param build builder
* @returns backtrace client
*/
static initialize(options: BacktraceConfiguration, build?: (builder: BacktraceClientBuilder) => void): BacktraceClient;
/**
* Returns created BacktraceClient instance if the instance exists.
* Otherwise undefined.
*/
static get instance(): BacktraceClient | undefined;
/**
* Disposes the client and all client callbacks
*/
dispose(): void;
private captureUnhandledErrors;
}