Skip to content

Commit

Permalink
Prometheus poll hook can return undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
rawagner committed May 23, 2022
1 parent e73b4a7 commit 65b773c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export type PrometheusPollProps = {

export type UsePrometheusPoll = (
props: PrometheusPollProps,
) => [PrometheusResponse, boolean, unknown];
) => [PrometheusResponse | undefined, boolean, unknown];

export type WatchK8sResource = {
/** @deprecated Use groupVersionKind instead. The kind property will be removed in a future release. */
Expand Down

0 comments on commit 65b773c

Please sign in to comment.