puppeteer/docs/api/puppeteer.handlefor.md
jrandolf 5ff205dc8b
fix: extends ElementHandle to Nodes (#8552)
* fix: extends `ElementHandle` to `Node`s (#8552)
2022-07-06 09:05:37 +02:00

274 B

sidebar_label
HandleFor

HandleFor type

Signature:

export declare type HandleFor<T> = T extends Node
  ? ElementHandle<T>
  : JSHandle<T>;

References: ElementHandle, JSHandle