0
0
mirror of https://github.com/puppeteer/puppeteer synced 2024-06-14 14:02:48 +00:00
puppeteer/website/versioned_docs/version-21.2.1/api/puppeteer.predicate.md
release-please[bot] a25527a223
chore: release main ()
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2023-09-13 12:29:09 +02:00

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