Skip to content

Commit

Permalink
Tweak TS style for indexing multiple types
Browse files Browse the repository at this point in the history
(cherry picked from commit 10c9f68)
  • Loading branch information
chriskrycho committed Dec 15, 2022
1 parent 5e87a54 commit 3214483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon-test-support/@ember/test-helpers/dom/find-all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { toArray } from '../ie-11-polyfills';
*/
export default function findAll<
K extends keyof (HTMLElementTagNameMap | SVGElementTagNameMap)
>(selector: K): Array<(HTMLElementTagNameMap | SVGElementTagNameMap)[K]>;
>(selector: K): Array<HTMLElementTagNameMap[K] | SVGElementTagNameMap[K]>;
export default function findAll<K extends keyof HTMLElementTagNameMap>(
selector: K
): Array<HTMLElementTagNameMap[K]>;
Expand Down
2 changes: 1 addition & 1 deletion addon-test-support/@ember/test-helpers/dom/find.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import getElement from './-get-element';
*/
export default function find<
K extends keyof (HTMLElementTagNameMap | SVGElementTagNameMap)
>(selector: K): (HTMLElementTagNameMap | SVGElementTagNameMap)[K] | null;
>(selector: K): HTMLElementTagNameMap[K] | SVGElementTagNameMap[K] | null;
export default function find<K extends keyof HTMLElementTagNameMap>(
selector: K
): HTMLElementTagNameMap[K] | null;
Expand Down

0 comments on commit 3214483

Please sign in to comment.