Skip to content

Commit d7163e4

Browse files
committed
fix(core/dom): fix type of dom methods
1 parent 95b696f commit d7163e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/dom/dom-types.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface FastjsDomAPI<ElementType extends ElementList> {
4141
father(): FastjsDom<ElementList> | null;
4242
children(): FastjsDomList;
4343
next<
44-
T extends FastjsDom | FastjsDomList | null =
44+
T extends FastjsDom<any> | FastjsDomList | null =
4545
| FastjsDom
4646
| FastjsDomList
4747
| null
@@ -97,12 +97,12 @@ export interface FastjsDomAPI<ElementType extends ElementList> {
9797
setAttr(attr: { [key: string]: string | null }): FastjsDom<ElementType>;
9898
setAttr(key: string, val: string | null): FastjsDom<ElementType>;
9999
push<T extends PushTarget>(
100-
el: ElementList | FastjsDomList | FastjsDom,
100+
el: ElementList | FastjsDomList | FastjsDom<any>,
101101
target: T,
102102
clone?: boolean
103103
): PushReturn<T, ElementType>;
104104
insert<T extends InsertTarget>(
105-
el: ElementList | FastjsDomList | FastjsDom,
105+
el: ElementList | FastjsDomList | FastjsDom<any>,
106106
target: T,
107107
clone?: boolean
108108
): InsertReturn<ElementType>;

0 commit comments

Comments
 (0)