puppeteer/website/versioned_docs/version-17.0.0/api/puppeteer.nodefor.md

17 lines
324 B
Markdown
Raw Normal View History

---
sidebar_label: NodeFor
---
# NodeFor type
**Signature:**
```typescript
export declare type NodeFor<Selector extends string> =
Selector extends keyof HTMLElementTagNameMap
? HTMLElementTagNameMap[Selector]
: Selector extends keyof SVGElementTagNameMap
? SVGElementTagNameMap[Selector]
: Element;
```