diff options
author | RaindropsSys <contact@minteck.org> | 2023-04-06 22:18:28 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-04-06 22:18:28 +0200 |
commit | 83354b2b88218090988dd6e526b0a2505b57e0f1 (patch) | |
tree | e3c73c38a122a78bb7e66fbb99056407edd9d4b9 /includes/external/addressbook/node_modules/cheerio/lib/utils.d.ts | |
parent | 47b8f2299a483024c4a6a8876af825a010954caa (diff) | |
download | pluralconnect-83354b2b88218090988dd6e526b0a2505b57e0f1.tar.gz pluralconnect-83354b2b88218090988dd6e526b0a2505b57e0f1.tar.bz2 pluralconnect-83354b2b88218090988dd6e526b0a2505b57e0f1.zip |
Updated 5 files and added 1110 files (automated)
Diffstat (limited to 'includes/external/addressbook/node_modules/cheerio/lib/utils.d.ts')
-rw-r--r-- | includes/external/addressbook/node_modules/cheerio/lib/utils.d.ts | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/includes/external/addressbook/node_modules/cheerio/lib/utils.d.ts b/includes/external/addressbook/node_modules/cheerio/lib/utils.d.ts new file mode 100644 index 0000000..8ed2c59 --- /dev/null +++ b/includes/external/addressbook/node_modules/cheerio/lib/utils.d.ts @@ -0,0 +1,75 @@ +import { type AnyNode } from 'domhandler'; +import type { Cheerio } from './cheerio.js'; +/** + * Check if the DOM element is a tag. + * + * `isTag(type)` includes `<script>` and `<style>` tags. + * + * @private + * @category Utils + * @param type - The DOM node to check. + * @returns Whether the node is a tag. + */ +export { isTag } from 'domhandler'; +/** + * Checks if an object is a Cheerio instance. + * + * @category Utils + * @param maybeCheerio - The object to check. + * @returns Whether the object is a Cheerio instance. + */ +export declare function isCheerio<T>(maybeCheerio: any): maybeCheerio is Cheerio<T>; +/** + * Convert a string to camel case notation. + * + * @private + * @category Utils + * @param str - The string to be converted. + * @returns String in camel case notation. + */ +export declare function camelCase(str: string): string; +/** + * Convert a string from camel case to "CSS case", where word boundaries are + * described by hyphens ("-") and all characters are lower-case. + * + * @private + * @category Utils + * @param str - The string to be converted. + * @returns String in "CSS case". + */ +export declare function cssCase(str: string): string; +/** + * Iterate over each DOM element without creating intermediary Cheerio instances. + * + * This is indented for use internally to avoid otherwise unnecessary memory + * pressure introduced by _make. + * + * @category Utils + * @param array - The array to iterate over. + * @param fn - Function to call. + * @returns The original instance. + */ +export declare function domEach<T extends AnyNode, Arr extends ArrayLike<T> = Cheerio<T>>(array: Arr, fn: (elem: T, index: number) => void): Arr; +/** + * Create a deep copy of the given DOM structure. Sets the parents of the copies + * of the passed nodes to `null`. + * + * @private + * @category Utils + * @param dom - The domhandler-compliant DOM structure. + * @returns - The cloned DOM. + */ +export declare function cloneDom<T extends AnyNode>(dom: T | T[]): T[]; +/** + * Check if string is HTML. + * + * Tests for a `<` within a string, immediate followed by a letter and + * eventually followed by a `>`. + * + * @private + * @category Utils + * @param str - The string to check. + * @returns Indicates if `str` is HTML. + */ +export declare function isHtml(str: string): boolean; +//# sourceMappingURL=utils.d.ts.map
\ No newline at end of file |