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 {
31
31
return list [ key ] ;
32
32
} ,
33
33
next <
34
- T extends FastjsDom | FastjsDomList | null =
34
+ T extends FastjsDom < any > | FastjsDomList | null =
35
35
| FastjsDom
36
36
| FastjsDomList
37
37
| null
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export interface FastjsDomListAPI {
17
17
getElement ( key ?: number ) : ElementList ;
18
18
getDom ( key ?: number ) : FastjsDom ;
19
19
next <
20
- T extends FastjsDom | FastjsDomList | null =
20
+ T extends FastjsDom < any > | FastjsDomList | null =
21
21
| FastjsDom
22
22
| FastjsDomList
23
23
| null
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export function createMethods<ElementType extends ElementList>(
119
119
const children = ( ) => createFastjsDomList ( [ ...dom . _el . children ] ) ;
120
120
121
121
const next = <
122
- T extends FastjsDom | FastjsDomList | null =
122
+ T extends FastjsDom < any > | FastjsDomList | null =
123
123
| FastjsDom
124
124
| FastjsDomList
125
125
| null
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import type { FastjsDomList } from "./dom-list-types";
6
6
7
7
interface DomModule {
8
8
<
9
- T extends FastjsDom | FastjsDomList | null =
9
+ T extends FastjsDom < any > | FastjsDomList | null =
10
10
| FastjsDom
11
11
| FastjsDomList
12
12
| null
@@ -20,7 +20,10 @@ interface DomModule {
20
20
}
21
21
22
22
const 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
24
27
> (
25
28
target : string = "body" ,
26
29
parent : Document | HTMLElement | HTMLElement [ ] = document
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { createFastjsDom } from "./dom";
7
7
import { createFastjsDomList } from "./dom-list" ;
8
8
9
9
function selector <
10
- T extends FastjsDom | FastjsDomList | null = FastjsDom | FastjsDomList | null
10
+ T extends FastjsDom < any > | FastjsDomList | null = FastjsDom | FastjsDomList | null
11
11
> (
12
12
target : string = "body" ,
13
13
parent : Document | ElementList | ElementList [ ] = document
You can’t perform that action at this time.
0 commit comments