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) --- .../node_modules/parse5/dist/index.d.ts | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 includes/external/addressbook/node_modules/parse5/dist/index.d.ts (limited to 'includes/external/addressbook/node_modules/parse5/dist/index.d.ts') diff --git a/includes/external/addressbook/node_modules/parse5/dist/index.d.ts b/includes/external/addressbook/node_modules/parse5/dist/index.d.ts new file mode 100644 index 0000000..66eb323 --- /dev/null +++ b/includes/external/addressbook/node_modules/parse5/dist/index.d.ts @@ -0,0 +1,60 @@ +import { type ParserOptions } from './parser/index.js'; +import type { DefaultTreeAdapterMap } from './tree-adapters/default.js'; +import type { TreeAdapterTypeMap } from './tree-adapters/interface.js'; +export { type DefaultTreeAdapterMap, defaultTreeAdapter } from './tree-adapters/default.js'; +export type { TreeAdapter, TreeAdapterTypeMap } from './tree-adapters/interface.js'; +export { type ParserOptions, /** @internal */ Parser } from './parser/index.js'; +export { serialize, serializeOuter, type SerializerOptions } from './serializer/index.js'; +export { ERR as ErrorCodes, type ParserError } from './common/error-codes.js'; +/** @internal */ +export * as foreignContent from './common/foreign-content.js'; +/** @internal */ +export * as html from './common/html.js'; +/** @internal */ +export * as Token from './common/token.js'; +/** @internal */ +export { Tokenizer, type TokenizerOptions, TokenizerMode, type TokenHandler } from './tokenizer/index.js'; +/** + * Parses an HTML string. + * + * @param html Input HTML string. + * @param options Parsing options. + * @returns Document + * + * @example + * + * ```js + * const parse5 = require('parse5'); + * + * const document = parse5.parse('Hi there!'); + * + * console.log(document.childNodes[1].tagName); //> 'html' + *``` + */ +export declare function parse(html: string, options?: ParserOptions): T['document']; +/** + * Parses an HTML fragment. + * + * @example + * + * ```js + * const parse5 = require('parse5'); + * + * const documentFragment = parse5.parseFragment('
'); + * + * console.log(documentFragment.childNodes[0].tagName); //> 'table' + * + * // Parses the html fragment in the context of the parsed element. + * const trFragment = parse5.parseFragment(documentFragment.childNodes[0], ''); + * + * console.log(trFragment.childNodes[0].childNodes[0].tagName); //> 'td' + * ``` + * + * @param fragmentContext Parsing context element. If specified, given fragment will be parsed as if it was set to the context element's `innerHTML` property. + * @param html Input HTML fragment string. + * @param options Parsing options. + * @returns DocumentFragment + */ +export declare function parseFragment(fragmentContext: T['parentNode'] | null, html: string, options: ParserOptions): T['documentFragment']; +export declare function parseFragment(html: string, options?: ParserOptions): T['documentFragment']; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file -- cgit
Shake it, baby