method IHealthApi.register
IHealthApi.register(
name: string,
): void

Registers a health indicator.

Parameters

name: string

Indicator name, unique per application

Function producing the health check result

Return Type

void

Usage

import { type IHealthApi } from "common/src/index.ts";