@visulima/health-check
Version:
A library built to provide support for defining service health for node services. It allows you to register async health checks for your dependencies and the service itself, provides a health endpoint that exposes their status, and health metrics.
5 lines (4 loc) • 319 B
TypeScript
import type { IncomingMessage, ServerResponse } from "node:http";
import type { HealthCheck } from "../types.d.ts";
declare const _default: <Request extends IncomingMessage, Response extends ServerResponse>(healthCheck: HealthCheck) => (_request: Request, response: Response) => Promise<void>;
export default _default;