Skip to content

Commit 335019d

Browse files
gitKrystanchriskrycho
authored andcommittedDec 15, 2022
Export type for Target
(cherry picked from commit 5689e67)
1 parent bae5e33 commit 335019d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎addon-test-support/@ember/test-helpers/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export { default as find } from './dom/find';
6969
export { default as findAll } from './dom/find-all';
7070
export { default as typeIn } from './dom/type-in';
7171
export { default as scrollTo } from './dom/scroll-to';
72+
export type { default as Target } from './dom/-target';
7273

7374
// Declaration-merge for our internal purposes.
7475
declare module '@ember/runloop' {

‎type-tests/api.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ import {
6565
DebugInfo as InternalDebugInfo,
6666
DeprecationFailure,
6767
Warning,
68+
Target,
6869
} from '@ember/test-helpers';
6970
import { ComponentInstance } from '@glimmer/interfaces';
7071
import { Owner } from '@ember/test-helpers/build-owner';
@@ -73,8 +74,6 @@ import EmberResolver from 'ember-resolver';
7374
import Application from '@ember/application';
7475
import { TemplateFactory } from 'ember-cli-htmlbars';
7576

76-
type Target = string | Element | Document | Window;
77-
7877
// DOM Interaction Helpers
7978
expectTypeOf(blur).toEqualTypeOf<(target?: Target) => Promise<void>>();
8079
expectTypeOf(click).toEqualTypeOf<

0 commit comments

Comments
 (0)
Please sign in to comment.