@backtrace/nestjs
Version:
Backtrace-JavaScript NestJS integration
23 lines (22 loc) • 1.05 kB
TypeScript
import { BacktraceClient } from '@backtrace/node';
import { BacktraceExceptionHandlerOptions } from './backtrace.handler.js';
export interface BacktraceModuleOptions {
/**
* Optional client instance to be used. If this is not provided, the global instance will be used.
*/
readonly client?: BacktraceClient;
/**
* Backtrace exception handler options. Will be injected into the interceptor and filter, if not specified there.
*/
readonly options?: BacktraceExceptionHandlerOptions;
}
declare const ConfigurableModuleClass: import("@nestjs/common").ConfigurableModuleCls<BacktraceClient | BacktraceModuleOptions | undefined, "register", "create", {}>;
/**
* Registers `BacktraceClient` and exports it. If the client is not passed, the global one is used.
* If using the global instance, make sure to call `BacktraceClient.initialize` first.
*
* This module is global, you need to register it only once in your application.
*/
export declare class BacktraceModule extends ConfigurableModuleClass {
}
export {};