puppeteer/docs/api/puppeteer.predicate.md

274 B

sidebar_label
Predicate

Predicate type

Signature:

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

References: Awaitable