Skip to content

Commit

Permalink
fix(core/dom): fix type of dom methods
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 committed Jul 14, 2024
1 parent 95b696f commit d7163e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/dom/dom-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface FastjsDomAPI<ElementType extends ElementList> {
father(): FastjsDom<ElementList> | null;
children(): FastjsDomList;
next<
T extends FastjsDom | FastjsDomList | null =
T extends FastjsDom<any> | FastjsDomList | null =
| FastjsDom
| FastjsDomList
| null
Expand Down Expand Up @@ -97,12 +97,12 @@ export interface FastjsDomAPI<ElementType extends ElementList> {
setAttr(attr: { [key: string]: string | null }): FastjsDom<ElementType>;
setAttr(key: string, val: string | null): FastjsDom<ElementType>;
push<T extends PushTarget>(
el: ElementList | FastjsDomList | FastjsDom,
el: ElementList | FastjsDomList | FastjsDom<any>,
target: T,
clone?: boolean
): PushReturn<T, ElementType>;
insert<T extends InsertTarget>(
el: ElementList | FastjsDomList | FastjsDom,
el: ElementList | FastjsDomList | FastjsDom<any>,
target: T,
clone?: boolean
): InsertReturn<ElementType>;
Expand Down

0 comments on commit d7163e4

Please sign in to comment.