File tree 3 files changed +8
-1
lines changed
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ - Fixed for TypeScript 5.5.
6
+
5
7
## v2.11.2
6
8
7
9
- Fixed handling ` unknown ` incorrectly. (Fix [ #36 ] ( https://github.com/g-plane/typed-query-selector/issues/36 ) )
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export type ParseSelector<
120
120
I extends string ,
121
121
Fallback extends Element = Element ,
122
122
> = ParseSelectorToTagNames < I > extends string
123
- ? ExpandAnd < ParseSelectorToTagNames < I > , Fallback > extends Element
123
+ ? ExpandAnd < ParseSelectorToTagNames < I > , Fallback > extends Fallback
124
124
? ExpandAnd < ParseSelectorToTagNames < I > , Fallback >
125
125
: Fallback
126
126
: Fallback
Original file line number Diff line number Diff line change @@ -360,3 +360,8 @@ declare function delegate<
360
360
Selector extends string ,
361
361
TElement extends Element = ParseSelector < Selector , HTMLElement > ,
362
362
> ( selector : Selector ) : void
363
+
364
+ declare function fetchDom <
365
+ Selector extends string ,
366
+ TElement extends HTMLElement = ParseSelector < Selector , HTMLElement > ,
367
+ > ( selector : Selector ) : Promise < TElement | undefined >
You can’t perform that action at this time.
0 commit comments