Skip to content

Commit 0a57958

Browse files
authored
Merge pull request #194 from Amour1688/fix/set_content
fix: partial set_content options
2 parents 9df8953 + 0a4bccd commit 0a57958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nodes/html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export default class HTMLElement extends Node {
335335
this.childNodes = nodes;
336336
}
337337

338-
public set_content(content: string | Node | Node[], options = {} as Options) {
338+
public set_content(content: string | Node | Node[], options = {} as Partial<Options>) {
339339
if (content instanceof Node) {
340340
content = [content];
341341
} else if (typeof content == 'string') {

0 commit comments

Comments
 (0)