Skip to content

Commit

Permalink
Merge pull request #1711 from jonahsnider/fix/broader-healthindicator…
Browse files Browse the repository at this point in the history
…function-types

fix: broaden HealthIndicatorFunction types
  • Loading branch information
BrunnerLivio authored Mar 16, 2022
2 parents 3e23dc5 + f0b20cd commit 7344c0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/health-indicator/health-indicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { HealthIndicatorResult } from './';
*
* @publicApi
*/
export type HealthIndicatorFunction = () => Promise<HealthIndicatorResult>;
export type HealthIndicatorFunction = () =>
| PromiseLike<HealthIndicatorResult>
| HealthIndicatorResult;

/**
* Represents an abstract health indicator
Expand Down

0 comments on commit 7344c0b

Please sign in to comment.