2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: HandleFor
|
|
|
|
---
|
|
|
|
|
|
|
|
# HandleFor type
|
|
|
|
|
2022-10-24 11:58:47 +00:00
|
|
|
#### Signature:
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
export declare type HandleFor<T> = T extends Node
|
|
|
|
? ElementHandle<T>
|
|
|
|
: JSHandle<T>;
|
|
|
|
```
|
|
|
|
|
|
|
|
**References:** [ElementHandle](./puppeteer.elementhandle.md), [JSHandle](./puppeteer.jshandle.md)
|