brf/server/types.ts
2025-12-13 21:12:08 +01:00

11 lines
318 B
TypeScript

import { type FastifyRequest, type FastifyReply } from 'fastify'
import { type DatabaseError } from 'pg-protocol'
import type StatusError from './lib/status_error.ts'
export type ErrorHandler = (
error: Error | DatabaseError | StatusError,
request: FastifyRequest,
reply: FastifyReply,
) => any | Promise<any>