UNPKG

572 BTypeScriptView Raw
1interface Fastify {
2 register: (plugin: any) => void;
3 addHook: (hook: string, handler: (request: any, reply: any, error: Error) => void) => void;
4}
5export declare const instrumentFastify: ((options?: unknown) => void) & {
6 id: string;
7};
8/**
9 * Express integration
10 *
11 * Capture tracing data for fastify.
12 */
13export declare const fastifyIntegration: () => import("@sentry/types").Integration;
14/**
15 * Setup an error handler for Fastify.
16 */
17export declare function setupFastifyErrorHandler(fastify: Fastify): void;
18export {};
19//# sourceMappingURL=fastify.d.ts.map
\No newline at end of file