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/domutils/lib/stringify.d.ts | |
parent | 8f54d903fb3470823a5e4d6ff4655de009836245 (diff) | |
download | youtoo-22a25ded9f7d9c9a96cce8d1bc12475ca0434201.tar.gz youtoo-22a25ded9f7d9c9a96cce8d1bc12475ca0434201.tar.bz2 youtoo-22a25ded9f7d9c9a96cce8d1bc12475ca0434201.zip |
Major update
Diffstat (limited to 'node_modules/domutils/lib/stringify.d.ts')
-rw-r--r-- | node_modules/domutils/lib/stringify.d.ts | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/node_modules/domutils/lib/stringify.d.ts b/node_modules/domutils/lib/stringify.d.ts new file mode 100644 index 0000000..b5019d0 --- /dev/null +++ b/node_modules/domutils/lib/stringify.d.ts @@ -0,0 +1,41 @@ +import { Node } from "domhandler"; +import { DomSerializerOptions } from "dom-serializer"; +/** + * @param node Node to get the outer HTML of. + * @param options Options for serialization. + * @deprecated Use the `dom-serializer` module directly. + * @returns `node`'s outer HTML. + */ +export declare function getOuterHTML(node: Node | Node[], options?: DomSerializerOptions): string; +/** + * @param node Node to get the inner HTML of. + * @param options Options for serialization. + * @deprecated Use the `dom-serializer` module directly. + * @returns `node`'s inner HTML. + */ +export declare function getInnerHTML(node: Node, options?: DomSerializerOptions): string; +/** + * Get a node's inner text. Same as `textContent`, but inserts newlines for `<br>` tags. + * + * @deprecated Use `textContent` instead. + * @param node Node to get the inner text of. + * @returns `node`'s inner text. + */ +export declare function getText(node: Node | Node[]): string; +/** + * Get a node's text content. + * + * @param node Node to get the text content of. + * @returns `node`'s text content. + * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent} + */ +export declare function textContent(node: Node | Node[]): string; +/** + * Get a node's inner text. + * + * @param node Node to get the inner text of. + * @returns `node`'s inner text. + * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/innerText} + */ +export declare function innerText(node: Node | Node[]): string; +//# sourceMappingURL=stringify.d.ts.map
\ No newline at end of file |