source: trip-planner-front/node_modules/domutils/lib/manipulation.d.ts@ 59329aa

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

initial commit

  • Property mode set to 100644
File size: 1.2 KB
Line 
1import type { Node, Element } from "domhandler";
2/**
3 * Remove an element from the dom
4 *
5 * @param elem The element to be removed
6 */
7export declare function removeElement(elem: Node): void;
8/**
9 * Replace an element in the dom
10 *
11 * @param elem The element to be replaced
12 * @param replacement The element to be added
13 */
14export declare function replaceElement(elem: Node, replacement: Node): void;
15/**
16 * Append a child to an element.
17 *
18 * @param elem The element to append to.
19 * @param child The element to be added as a child.
20 */
21export declare function appendChild(elem: Element, child: Node): void;
22/**
23 * Append an element after another.
24 *
25 * @param elem The element to append after.
26 * @param next The element be added.
27 */
28export declare function append(elem: Node, next: Node): void;
29/**
30 * Prepend a child to an element.
31 *
32 * @param elem The element to prepend before.
33 * @param child The element to be added as a child.
34 */
35export declare function prependChild(elem: Element, child: Node): void;
36/**
37 * Prepend an element before another.
38 *
39 * @param elem The element to prepend before.
40 * @param prev The element be added.
41 */
42export declare function prepend(elem: Node, prev: Node): void;
43//# sourceMappingURL=manipulation.d.ts.map
Note: See TracBrowser for help on using the repository browser.