Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

selector

Given the specified selector, returns a function which returns the first descendant of "this" element that matches the specified selector.

The generic refers to the type of the returned descendant element.

function selector<DescElement extends Element>(selector: string): (this: BaseType) => DescElement;
§
selector<DescElement extends Element>(selector: string): (this: BaseType) => DescElement
[src]

§Type Parameters

§
DescElement extends Element
[src]

§Parameters

§
selector: string
[src]

A CSS selector string.

§Return Type

§
(this: BaseType) => DescElement
[src]