File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -807,8 +807,7 @@ module Emit =
807
807
let EmitQuerySelectorOverloads ( m : Browser.Method ) =
808
808
if matchSingleParamMethodSignature m " querySelector" " Element" " string" then
809
809
Pt.Printl " querySelector<K extends keyof ElementTagNameMap>(selectors: K): ElementTagNameMap[K] | null;"
810
- Pt.Printl " querySelector<E extends Element>(selectors: string): E | null;"
811
- Pt.Printl " querySelector(selectors: string): Element | null;"
810
+ Pt.Printl " querySelector<E extends Element = Element>(selectors: string): E | null;"
812
811
813
812
/// Emit overloads for the querySelectorAll method
814
813
let EmitQuerySelectorAllOverloads ( m : Browser.Method ) =
Original file line number Diff line number Diff line change @@ -13736,8 +13736,7 @@ interface NavigatorUserMedia {
13736
13736
13737
13737
interface NodeSelector {
13738
13738
querySelector<K extends keyof ElementTagNameMap>(selectors: K): ElementTagNameMap[K] | null;
13739
- querySelector<E extends Element>(selectors: string): E | null;
13740
- querySelector(selectors: string): Element | null;
13739
+ querySelector<E extends Element = Element>(selectors: string): E | null;
13741
13740
querySelectorAll<K extends keyof ElementListTagNameMap>(selectors: K): ElementListTagNameMap[K];
13742
13741
querySelectorAll<E extends Element>(selectors: string): NodeListOf<E>;
13743
13742
querySelectorAll(selectors: string): NodeListOf<Element>;
You can’t perform that action at this time.
0 commit comments