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/index.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/index.d.ts')
-rw-r--r-- | node_modules/cheerio/lib/index.d.ts | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/node_modules/cheerio/lib/index.d.ts b/node_modules/cheerio/lib/index.d.ts new file mode 100644 index 0000000..e651f38 --- /dev/null +++ b/node_modules/cheerio/lib/index.d.ts @@ -0,0 +1,91 @@ +/** + * The main types of Cheerio objects. + * + * @category Cheerio + */ +export type { Cheerio } from './cheerio'; +/** + * Types used in signatures of Cheerio methods. + * + * @category Cheerio + */ +export * from './types'; +export type { CheerioOptions, HTMLParser2Options, Parse5Options, } from './options'; +/** + * Re-exporting all of the node types. + * + * @category DOM Node + */ +export type { Node, NodeWithChildren, Element, Document } from 'domhandler'; +export * from './load'; +declare const _default: import("./load").CheerioAPI; +/** + * The default cheerio instance. + * + * @deprecated Use the function returned by `load` instead. + */ +export default _default; +import * as staticMethods from './static'; +/** + * In order to promote consistency with the jQuery library, users are encouraged + * to instead use the static method of the same name. + * + * @deprecated + * @example + * + * ```js + * const $ = cheerio.load('<div><p></p></div>'); + * + * $.contains($('div').get(0), $('p').get(0)); + * //=> true + * + * $.contains($('p').get(0), $('div').get(0)); + * //=> false + * ``` + * + * @returns {boolean} + */ +export declare const contains: typeof staticMethods.contains; +/** + * In order to promote consistency with the jQuery library, users are encouraged + * to instead use the static method of the same name. + * + * @deprecated + * @example + * + * ```js + * const $ = cheerio.load(''); + * + * $.merge([1, 2], [3, 4]); + * //=> [1, 2, 3, 4] + * ``` + */ +export declare const merge: typeof staticMethods.merge; +/** + * In order to promote consistency with the jQuery library, users are encouraged + * to instead use the static method of the same name as it is defined on the + * "loaded" Cheerio factory function. + * + * @deprecated See {@link static/parseHTML}. + * @example + * + * ```js + * const $ = cheerio.load(''); + * $.parseHTML('<b>markup</b>'); + * ``` + */ +export declare const parseHTML: typeof staticMethods.parseHTML; +/** + * Users seeking to access the top-level element of a parsed document should + * instead use the `root` static method of a "loaded" Cheerio function. + * + * @deprecated + * @example + * + * ```js + * const $ = cheerio.load(''); + * $.root(); + * ``` + */ +export declare const root: typeof staticMethods.root; +//# sourceMappingURL=index.d.ts.map
\ No newline at end of file |