Skip to main content
Version: 21.3.8

Predicate type

Signature:

export type Predicate<From, To extends From = From> =
| ((value: From) => value is To)
| ((value: From) => Awaitable<boolean>);

References: Awaitable