Skip to content

Commit f01ad9f

Browse files
gitKrystanchriskrycho
authored andcommittedDec 15, 2022
Tweak TS style for indexing multiple types (for getElement)
(cherry picked from commit c7eb91a)
1 parent 2dc5077 commit f01ad9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎addon-test-support/@ember/test-helpers/dom/-get-element.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Target, { isDocument, isElement } from './-target';
33

44
function getElement<
55
K extends keyof (HTMLElementTagNameMap | SVGElementTagNameMap)
6-
>(target: K): (HTMLElementTagNameMap | SVGElementTagNameMap)[K] | null;
6+
>(target: K): (HTMLElementTagNameMap[K] | SVGElementTagNameMap[K]) | null;
77
function getElement<K extends keyof HTMLElementTagNameMap>(
88
target: K
99
): HTMLElementTagNameMap[K] | null;

0 commit comments

Comments
 (0)
Please sign in to comment.