11 lines
318 B
TypeScript
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>
|