Skip to content

Commit 99c42a4

Browse files
antoooooooooooonieoctagonal
authored andcommitted
fix(ts): Add TerminusState interface, update HealthCheck function type (#201)
Co-authored-by: Anthony Madhvani <[email protected]>
1 parent 3f353c6 commit 99c42a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

typings/index.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
declare module "@godaddy/terminus" {
2-
export type HealthCheck = () => Promise<any>;
2+
export interface TerminusState {
3+
isShuttingDown: boolean;
4+
}
5+
6+
export type HealthCheck = ({ state }: { state: TerminusState }) => Promise<any>;
37

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

0 commit comments

Comments
 (0)