Skip to content

Commit e4a8d20

Browse files
committed
Add private runloop backburner re-exports
`@ember/test-helpers` uses these as they exist in the DT and preview types, so to avoid breaking that, re-supply them here. They should not be relied upon long-term, but this allows us to migrate the library's dependency chain distinctly from the release of these types.
1 parent 3f54dc7 commit e4a8d20

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This exists solely to provide a compatibility shim for `ember-test-helpers`
2+
// as part of the transition off of DefinitelyTyped. Long-term, this should be
3+
// structured differently:
4+
//
5+
// 1. `backburner.js` should provide actual public types for things which are
6+
// actually part of its public contract: these are currently used in key
7+
// areas as "intimate" API.
8+
// 2. `ember-test-helpers` should use the types from `backburner.js` directly,
9+
// rather than relying on Ember's re-export.
10+
11+
import type Backburner from 'backburner.js';
12+
export type DebugInfo = ReturnType<Backburner['getDebugInfo']>;
13+
14+
export { IQueueItem as QueueItem } from 'backburner.js/dist/backburner/interfaces';
15+
export { DeferredActionQueues } from 'backburner.js';

0 commit comments

Comments
 (0)