mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
5ff205dc8b
* fix: extends `ElementHandle` to `Node`s (#8552)
16 lines
274 B
Markdown
16 lines
274 B
Markdown
---
|
|
sidebar_label: HandleFor
|
|
---
|
|
|
|
# HandleFor type
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
export declare type HandleFor<T> = T extends Node
|
|
? ElementHandle<T>
|
|
: JSHandle<T>;
|
|
```
|
|
|
|
**References:** [ElementHandle](./puppeteer.elementhandle.md), [JSHandle](./puppeteer.jshandle.md)
|