diff options
author | Minteck <contact@minteck.org> | 2022-02-09 17:58:07 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-02-09 17:58:07 +0100 |
commit | 22a25ded9f7d9c9a96cce8d1bc12475ca0434201 (patch) | |
tree | 0e33d0650fe58f41c00bbc4b8047956905766823 /node_modules/cheerio/lib/cheerio.d.ts | |
parent | 8f54d903fb3470823a5e4d6ff4655de009836245 (diff) | |
download | youtoo-22a25ded9f7d9c9a96cce8d1bc12475ca0434201.tar.gz youtoo-22a25ded9f7d9c9a96cce8d1bc12475ca0434201.tar.bz2 youtoo-22a25ded9f7d9c9a96cce8d1bc12475ca0434201.zip |
Major update
Diffstat (limited to 'node_modules/cheerio/lib/cheerio.d.ts')
-rw-r--r-- | node_modules/cheerio/lib/cheerio.d.ts | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/node_modules/cheerio/lib/cheerio.d.ts b/node_modules/cheerio/lib/cheerio.d.ts new file mode 100644 index 0000000..0564193 --- /dev/null +++ b/node_modules/cheerio/lib/cheerio.d.ts @@ -0,0 +1,53 @@ +import { InternalOptions } from './options'; +import type { Node, Document } from 'domhandler'; +import { BasicAcceptedElems } from './types'; +import * as Attributes from './api/attributes'; +import * as Traversing from './api/traversing'; +import * as Manipulation from './api/manipulation'; +import * as Css from './api/css'; +import * as Forms from './api/forms'; +declare type AttributesType = typeof Attributes; +declare type TraversingType = typeof Traversing; +declare type ManipulationType = typeof Manipulation; +declare type CssType = typeof Css; +declare type FormsType = typeof Forms; +export declare class Cheerio<T> implements ArrayLike<T> { + length: number; + [index: number]: T; + options: InternalOptions; + /** + * The root of the document. Can be set by using the `root` argument of the constructor. + * + * @private + */ + _root: Cheerio<Document> | undefined; + /** @function */ + find: typeof Traversing.find; + /** + * Instance of cheerio. Methods are specified in the modules. Usage of this + * constructor is not recommended. Please use $.load instead. + * + * @private + * @param selector - The new selection. + * @param context - Context of the selection. + * @param root - Sets the root node. + * @param options - Options for the instance. + */ + constructor(selector?: T extends Node ? BasicAcceptedElems<T> : Cheerio<T> | T[], context?: BasicAcceptedElems<Node> | null, root?: BasicAcceptedElems<Document> | null, options?: InternalOptions); + prevObject: Cheerio<Node> | undefined; + /** + * Make a cheerio object. + * + * @private + * @param dom - The contents of the new object. + * @param context - The context of the new object. + * @returns The new cheerio object. + */ + _make<T>(dom: Cheerio<T> | T[] | T | string, context?: BasicAcceptedElems<Node>): Cheerio<T>; +} +export interface Cheerio<T> extends AttributesType, TraversingType, ManipulationType, CssType, FormsType, Iterable<T> { + cheerio: '[cheerio object]'; + splice: typeof Array.prototype.slice; +} +export {}; +//# sourceMappingURL=cheerio.d.ts.map
\ No newline at end of file |