api-railway
Version:
Api wrapper for api.railwayapi.site
15 lines (14 loc) • 474 B
TypeScript
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]>;
}