Skip to content

Commit

Permalink
Export type for Target
Browse files Browse the repository at this point in the history
(cherry picked from commit 5689e67)
  • Loading branch information
gitKrystan authored and chriskrycho committed Dec 15, 2022
1 parent bae5e33 commit 335019d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions addon-test-support/@ember/test-helpers/index.ts
Expand Up @@ -69,6 +69,7 @@ export { default as find } from './dom/find';
export { default as findAll } from './dom/find-all';
export { default as typeIn } from './dom/type-in';
export { default as scrollTo } from './dom/scroll-to';
export type { default as Target } from './dom/-target';

// Declaration-merge for our internal purposes.
declare module '@ember/runloop' {
Expand Down
3 changes: 1 addition & 2 deletions type-tests/api.ts
Expand Up @@ -65,6 +65,7 @@ import {
DebugInfo as InternalDebugInfo,
DeprecationFailure,
Warning,
Target,
} from '@ember/test-helpers';
import { ComponentInstance } from '@glimmer/interfaces';
import { Owner } from '@ember/test-helpers/build-owner';
Expand All @@ -73,8 +74,6 @@ import EmberResolver from 'ember-resolver';
import Application from '@ember/application';
import { TemplateFactory } from 'ember-cli-htmlbars';

type Target = string | Element | Document | Window;

// DOM Interaction Helpers
expectTypeOf(blur).toEqualTypeOf<(target?: Target) => Promise<void>>();
expectTypeOf(click).toEqualTypeOf<
Expand Down

0 comments on commit 335019d

Please sign in to comment.