source: trip-planner-front/node_modules/domutils/lib/stringify.d.ts@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.5 KB
Line 
1import { Node } from "domhandler";
2import { DomSerializerOptions } from "dom-serializer";
3/**
4 * @param node Node to get the outer HTML of.
5 * @param options Options for serialization.
6 * @deprecated Use the `dom-serializer` module directly.
7 * @returns `node`'s outer HTML.
8 */
9export declare function getOuterHTML(node: Node | Node[], options?: DomSerializerOptions): string;
10/**
11 * @param node Node to get the inner HTML of.
12 * @param options Options for serialization.
13 * @deprecated Use the `dom-serializer` module directly.
14 * @returns `node`'s inner HTML.
15 */
16export declare function getInnerHTML(node: Node, options?: DomSerializerOptions): string;
17/**
18 * Get a node's inner text. Same as `textContent`, but inserts newlines for `<br>` tags.
19 *
20 * @deprecated Use `textContent` instead.
21 * @param node Node to get the inner text of.
22 * @returns `node`'s inner text.
23 */
24export declare function getText(node: Node | Node[]): string;
25/**
26 * Get a node's text content.
27 *
28 * @param node Node to get the text content of.
29 * @returns `node`'s text content.
30 * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent}
31 */
32export declare function textContent(node: Node | Node[]): string;
33/**
34 * Get a node's inner text.
35 *
36 * @param node Node to get the inner text of.
37 * @returns `node`'s inner text.
38 * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/innerText}
39 */
40export declare function innerText(node: Node | Node[]): string;
41//# sourceMappingURL=stringify.d.ts.map
Note: See TracBrowser for help on using the repository browser.