Skip to content

Commit 5689e67

Browse files
committed
Export type for Target
1 parent 7f01af2 commit 5689e67

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export { default as find } from './dom/find';
6868
export { default as findAll } from './dom/find-all';
6969
export { default as typeIn } from './dom/type-in';
7070
export { default as scrollTo } from './dom/scroll-to';
71+
export type { default as Target } from './dom/-target';
7172

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

type-tests/api.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import {
6363
DebugInfo as InternalDebugInfo,
6464
DeprecationFailure,
6565
Warning,
66+
Target,
6667
} from '@ember/test-helpers';
6768
import { ComponentInstance } from '@glimmer/interfaces';
6869
import { Owner } from '@ember/test-helpers/build-owner';
@@ -71,8 +72,6 @@ import EmberResolver from 'ember-resolver';
7172
import Application from '@ember/application';
7273
import { TemplateFactory } from 'ember-cli-htmlbars';
7374

74-
type Target = string | Element | Document | Window;
75-
7675
// DOM Interaction Helpers
7776
expectTypeOf(blur).toEqualTypeOf<(target?: Target) => Promise<void>>();
7877
expectTypeOf(click).toEqualTypeOf<

0 commit comments

Comments
 (0)