Skip to content

Commit

Permalink
fix(ts): Add TerminusState interface, update HealthCheck function type (
Browse files Browse the repository at this point in the history
#201)

Co-authored-by: Anthony Madhvani <[email protected]>
  • Loading branch information
2 people authored and gergelyke committed Jan 19, 2022
1 parent 3f353c6 commit 99c42a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
declare module "@godaddy/terminus" {
export type HealthCheck = () => Promise<any>;
export interface TerminusState {
isShuttingDown: boolean;
}

export type HealthCheck = ({ state }: { state: TerminusState }) => Promise<any>;

export class HealthCheckError extends Error {
constructor(message: string, causes: any);
Expand Down

0 comments on commit 99c42a4

Please sign in to comment.