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/serializer/index.d.ts | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 includes/external/addressbook/node_modules/parse5/dist/serializer/index.d.ts (limited to 'includes/external/addressbook/node_modules/parse5/dist/serializer/index.d.ts') diff --git a/includes/external/addressbook/node_modules/parse5/dist/serializer/index.d.ts b/includes/external/addressbook/node_modules/parse5/dist/serializer/index.d.ts new file mode 100644 index 0000000..bf759e6 --- /dev/null +++ b/includes/external/addressbook/node_modules/parse5/dist/serializer/index.d.ts @@ -0,0 +1,61 @@ +import type { TreeAdapter, TreeAdapterTypeMap } from '../tree-adapters/interface.js'; +import { type DefaultTreeAdapterMap } from '../tree-adapters/default.js'; +export interface SerializerOptions { + /** + * Specifies input tree format. + * + * @default `treeAdapters.default` + */ + treeAdapter?: TreeAdapter; + /** + * The [scripting flag](https://html.spec.whatwg.org/multipage/parsing.html#scripting-flag). If set + * to `true`, `noscript` element content will not be escaped. + * + * @default `true` + */ + scriptingEnabled?: boolean; +} +/** + * Serializes an AST node to an HTML string. + * + * @example + * + * ```js + * const parse5 = require('parse5'); + * + * const document = parse5.parse('Hi there!'); + * + * // Serializes a document. + * const html = parse5.serialize(document); + * + * // Serializes the element content. + * const str = parse5.serialize(document.childNodes[1]); + * + * console.log(str); //> 'Hi there!' + * ``` + * + * @param node Node to serialize. + * @param options Serialization options. + */ +export declare function serialize(node: T['parentNode'], options?: SerializerOptions): string; +/** + * Serializes an AST element node to an HTML string, including the element node. + * + * @example + * + * ```js + * const parse5 = require('parse5'); + * + * const document = parse5.parseFragment('
Hello, world!
'); + * + * // Serializes the
element. + * const html = parse5.serializeOuter(document.childNodes[0]); + * + * console.log(str); //> '
Hello, world!
' + * ``` + * + * @param node Node to serialize. + * @param options Serialization options. + */ +export declare function serializeOuter(node: T['node'], options?: SerializerOptions): string; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file -- cgit