puppeteer/website/versioned_docs/version-21.3.8/api/puppeteer.predicate.md

16 lines
274 B
Markdown
Raw Normal View History

---
sidebar_label: Predicate
---
# Predicate type
#### Signature:
```typescript
export type Predicate<From, To extends From = From> =
| ((value: From) => value is To)
| ((value: From) => Awaitable<boolean>);
```
**References:** [Awaitable](./puppeteer.awaitable.md)