From 83354b2b88218090988dd6e526b0a2505b57e0f1 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 6 Apr 2023 22:18:28 +0200 Subject: Updated 5 files and added 1110 files (automated) --- .../addressbook/node_modules/cheerio/lib/load.d.ts | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 includes/external/addressbook/node_modules/cheerio/lib/load.d.ts (limited to 'includes/external/addressbook/node_modules/cheerio/lib/load.d.ts') diff --git a/includes/external/addressbook/node_modules/cheerio/lib/load.d.ts b/includes/external/addressbook/node_modules/cheerio/lib/load.d.ts new file mode 100644 index 0000000..49d1c84 --- /dev/null +++ b/includes/external/addressbook/node_modules/cheerio/lib/load.d.ts @@ -0,0 +1,60 @@ +/// +import { CheerioOptions, InternalOptions } from './options.js'; +import * as staticMethods from './static.js'; +import { Cheerio } from './cheerio.js'; +import type { AnyNode, Document, Element } from 'domhandler'; +import type { SelectorType, BasicAcceptedElems } from './types.js'; +declare type StaticType = typeof staticMethods; +/** + * A querying function, bound to a document created from the provided markup. + * + * Also provides several helper methods for dealing with the document as a whole. + */ +export interface CheerioAPI extends StaticType { + /** + * This selector method is the starting point for traversing and manipulating + * the document. Like jQuery, it's the primary method for selecting elements + * in the document. + * + * `selector` searches within the `context` scope which searches within the + * `root` scope. + * + * @example + * + * ```js + * $('.apple', '#fruits').text(); + * //=> Apple + * + * $('ul .pear').attr('class'); + * //=> pear + * + * $('li[class=orange]').html(); + * //=> Orange + * ``` + * + * @param selector - Either a selector to look for within the document, or the + * contents of a new Cheerio instance. + * @param context - Either a selector to look for within the root, or the + * contents of the document to query. + * @param root - Optional HTML document string. + */ + (selector?: S | BasicAcceptedElems, context?: BasicAcceptedElems | null, root?: BasicAcceptedElems, options?: CheerioOptions): Cheerio; + /** + * The root the document was originally loaded with. + * + * @private + */ + _root: Document; + /** + * The options the document was originally loaded with. + * + * @private + */ + _options: InternalOptions; + /** Mimic jQuery's prototype alias for plugin authors. */ + fn: typeof Cheerio.prototype; + load: ReturnType; +} +export declare function getLoad(parse: typeof Cheerio.prototype._parse, render: (dom: AnyNode | ArrayLike, options: InternalOptions) => string): (content: string | AnyNode | AnyNode[] | Buffer, options?: CheerioOptions | null, isDocument?: boolean) => CheerioAPI; +export {}; +//# sourceMappingURL=load.d.ts.map \ No newline at end of file -- cgit