Cheerio
class Cheerio<T> implements ArrayLike<T> {}
constructor(
selector?: T extends Node ? BasicAcceptedElems<T> : Cheerio<T> | T[],
context?: BasicAcceptedElems<Node> | null,
root?: BasicAcceptedElems<Document> | null,
options?: InternalOptions,
);[index: number]: T;
interface Cheerio <T> extends AttributesType, TraversingType, ManipulationType, CssType, FormsType, Iterable<T> {
cheerio: "[cheerio object]";
splice: Array.prototype.slice;
}§Constructors
§
new Cheerio(selector?: T extends Node ? BasicAcceptedElems<T> : Cheerio<T> | T[], context?: BasicAcceptedElems<Node> | null, root?: BasicAcceptedElems<Document> | null, options?: InternalOptions)
[src]Instance of cheerio. Methods are specified in the modules. Usage of this constructor is not recommended. Please use $.load instead.
@param selector
- The new selection.
@param context
- Context of the selection.
@param root
- Sets the root node.
@param options
- Options for the instance.
§Properties
§
options: InternalOptions
[src]