mirror of
https://github.com/lingble/twenty.git
synced 2025-10-30 12:22:29 +00:00
24 lines
540 B
TypeScript
24 lines
540 B
TypeScript
import { Router } from 'express';
|
|
|
|
export enum ExceptionHandlerDriver {
|
|
Sentry = 'sentry',
|
|
Console = 'console',
|
|
}
|
|
|
|
export interface ExceptionHandlerSentryDriverFactoryOptions {
|
|
type: ExceptionHandlerDriver.Sentry;
|
|
options: {
|
|
dsn: string;
|
|
serverInstance?: Router;
|
|
debug?: boolean;
|
|
};
|
|
}
|
|
|
|
export interface ExceptionHandlerDriverFactoryOptions {
|
|
type: ExceptionHandlerDriver.Console;
|
|
}
|
|
|
|
export type ExceptionHandlerModuleOptions =
|
|
| ExceptionHandlerSentryDriverFactoryOptions
|
|
| ExceptionHandlerDriverFactoryOptions;
|