File tree Expand file tree Collapse file tree 5 files changed +9
-6
lines changed
Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export function createMethods(list: FastjsDomList): FastjsDomListAPI {
3131 return list [ key ] ;
3232 } ,
3333 next <
34- T extends FastjsDom | FastjsDomList | null =
34+ T extends FastjsDom < any > | FastjsDomList | null =
3535 | FastjsDom
3636 | FastjsDomList
3737 | null
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export interface FastjsDomListAPI {
1717 getElement ( key ?: number ) : ElementList ;
1818 getDom ( key ?: number ) : FastjsDom ;
1919 next <
20- T extends FastjsDom | FastjsDomList | null =
20+ T extends FastjsDom < any > | FastjsDomList | null =
2121 | FastjsDom
2222 | FastjsDomList
2323 | null
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export function createMethods<ElementType extends ElementList>(
119119 const children = ( ) => createFastjsDomList ( [ ...dom . _el . children ] ) ;
120120
121121 const next = <
122- T extends FastjsDom | FastjsDomList | null =
122+ T extends FastjsDom < any > | FastjsDomList | null =
123123 | FastjsDom
124124 | FastjsDomList
125125 | null
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import type { FastjsDomList } from "./dom-list-types";
66
77interface DomModule {
88 <
9- T extends FastjsDom | FastjsDomList | null =
9+ T extends FastjsDom < any > | FastjsDomList | null =
1010 | FastjsDom
1111 | FastjsDomList
1212 | null
@@ -20,7 +20,10 @@ interface DomModule {
2020}
2121
2222const dom : DomModule = function <
23- T extends FastjsDom | FastjsDomList | null = FastjsDom | FastjsDomList | null
23+ T extends FastjsDom < any > | FastjsDomList | null =
24+ | FastjsDom
25+ | FastjsDomList
26+ | null
2427> (
2528 target : string = "body" ,
2629 parent : Document | HTMLElement | HTMLElement [ ] = document
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { createFastjsDom } from "./dom";
77import { createFastjsDomList } from "./dom-list" ;
88
99function selector <
10- T extends FastjsDom | FastjsDomList | null = FastjsDom | FastjsDomList | null
10+ T extends FastjsDom < any > | FastjsDomList | null = FastjsDom | FastjsDomList | null
1111> (
1212 target : string = "body" ,
1313 parent : Document | ElementList | ElementList [ ] = document
You can’t perform that action at this time.
0 commit comments