UNPKG

api-railway

Version:
15 lines (14 loc) 474 B
import { Client } from "./index.js"; export default class HealthCheck { private readonly baseUrl; private readonly urlBuilder; constructor(client: Client); checkParts(): { url: string; headers?: Record<string, string>; method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; params: Record<string, string>; body: BodyInit | null; }; check(): Promise<[Error] | [undefined, {} | import("./types.js").ApiError]>; }