UNPKG

@lokalise/fastify-extras

Version:

Opinionated set of fastify plugins, commonly used in Lokalise

8 lines (7 loc) 405 B
import type { Either } from '@lokalise/node-core'; import type { AnyFastifyInstance } from '../pluginsCommon.js'; export type HealthChecker = (app: AnyFastifyInstance) => Promise<Either<Error, true>>; /** * Return a function which executes healthcheck and throws an error if it fails */ export declare const wrapHealthCheck: (app: AnyFastifyInstance, healthCheck: HealthChecker) => () => Promise<void>;