File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -807,12 +807,14 @@ 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;"
810
811
Pt.Printl " querySelector(selectors: string): Element | null;"
811
812
812
813
/// Emit overloads for the querySelectorAll method
813
814
let EmitQuerySelectorAllOverloads ( m : Browser.Method ) =
814
815
if matchSingleParamMethodSignature m " querySelectorAll" " NodeList" " string" then
815
816
Pt.Printl " querySelectorAll<K extends keyof ElementListTagNameMap>(selectors: K): ElementListTagNameMap[K];"
817
+ Pt.Printl " querySelectorAll<E extends Element>(selectors: string): NodeListOf<E>;"
816
818
Pt.Printl " querySelectorAll(selectors: string): NodeListOf<Element>;"
817
819
818
820
let EmitHTMLElementTagNameMap () =
You can’t perform that action at this time.
0 commit comments