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/manipulation.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/manipulation.d.ts')
-rw-r--r-- | node_modules/domutils/lib/manipulation.d.ts | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/node_modules/domutils/lib/manipulation.d.ts b/node_modules/domutils/lib/manipulation.d.ts new file mode 100644 index 0000000..0950619 --- /dev/null +++ b/node_modules/domutils/lib/manipulation.d.ts @@ -0,0 +1,43 @@ +import type { Node, Element } from "domhandler"; +/** + * Remove an element from the dom + * + * @param elem The element to be removed + */ +export declare function removeElement(elem: Node): void; +/** + * Replace an element in the dom + * + * @param elem The element to be replaced + * @param replacement The element to be added + */ +export declare function replaceElement(elem: Node, replacement: Node): void; +/** + * Append a child to an element. + * + * @param elem The element to append to. + * @param child The element to be added as a child. + */ +export declare function appendChild(elem: Element, child: Node): void; +/** + * Append an element after another. + * + * @param elem The element to append after. + * @param next The element be added. + */ +export declare function append(elem: Node, next: Node): void; +/** + * Prepend a child to an element. + * + * @param elem The element to prepend before. + * @param child The element to be added as a child. + */ +export declare function prependChild(elem: Element, child: Node): void; +/** + * Prepend an element before another. + * + * @param elem The element to prepend before. + * @param prev The element be added. + */ +export declare function prepend(elem: Node, prev: Node): void; +//# sourceMappingURL=manipulation.d.ts.map
\ No newline at end of file |