backend-plugin-api: fix typings in health service

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2024-06-20 15:45:02 +02:00
parent 7df5c8875c
commit 878f2efc51
3 changed files with 8 additions and 6 deletions
@@ -17,12 +17,12 @@ import { RootHealthService, coreServices } from '@backstage/backend-plugin-api';
const backend = createBackend();
class MyRootHealthService implements RootHealthService {
async getLiveness(): Promise<{ status: number; payload?: any }> {
async getLiveness() {
// provide your own implementation
return { status: 200, payload: { status: 'ok' } };
}
async getReadiness(): Promise<{ status: number; payload?: any }> {
async getReadiness() {
// provide your own implementation
return { status: 200, payload: { status: 'ok' } };
}