* Refactor backend folder structure Co-authored-by: Charles Bochet <charles@twenty.com> * fix tests * fix * move yoga hooks --------- Co-authored-by: Charles Bochet <charles@twenty.com>
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;
|