Skip to content

Commit

Permalink
Merge pull request #20481 from emberjs/backport-proxy-mixin-type-loca…
Browse files Browse the repository at this point in the history
…tions

[BUGFIX LTS] Backport some stable type import locations
  • Loading branch information
chriskrycho authored Jun 28, 2023
2 parents 1171312 + 5e94c92 commit 30b66f3
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
declare module '@ember/-internals/runtime/lib/mixins/container_proxy' {
import { ContainerProxy } from '@ember/-internals/owner';
import Mixin from '@ember/object/mixin';

/**
* Given a fullName return a factory manager.
*/
interface ContainerProxyMixin extends ContainerProxy {}
const ContainerProxyMixin: Mixin;
export default ContainerProxyMixin;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
declare module '@ember/-internals/runtime/lib/mixins/registry_proxy' {
import { RegistryProxy } from '@ember/-internals/owner';
import Mixin from '@ember/object/mixin';

/**
* RegistryProxyMixin is used to provide public access to specific
* registry functionality.
*/
interface RegistryProxyMixin extends RegistryProxy {}
const RegistryProxyMixin: Mixin;
export default RegistryProxyMixin;
}
10 changes: 1 addition & 9 deletions types/preview/@ember/engine/-private/container-proxy-mixin.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
declare module '@ember/engine/-private/container-proxy-mixin' {
import { ContainerProxy } from '@ember/-internals/owner';
import Mixin from '@ember/object/mixin';

/**
* Given a fullName return a factory manager.
*/
interface ContainerProxyMixin extends ContainerProxy {}
const ContainerProxyMixin: Mixin;
export default ContainerProxyMixin;
export type { default } from '@ember/-internals/runtime/lib/mixins/container_proxy';
}
11 changes: 1 addition & 10 deletions types/preview/@ember/engine/-private/registry-proxy-mixin.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
declare module '@ember/engine/-private/registry-proxy-mixin' {
import { RegistryProxy } from '@ember/-internals/owner';
import Mixin from '@ember/object/mixin';

/**
* RegistryProxyMixin is used to provide public access to specific
* registry functionality.
*/
interface RegistryProxyMixin extends RegistryProxy {}
const RegistryProxyMixin: Mixin;
export default RegistryProxyMixin;
export type { default } from '@ember/-internals/runtime/lib/mixins/registry_proxy';
}
3 changes: 3 additions & 0 deletions types/preview/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
import './ember';
import './ember/-private/type-utils';

import './@ember/-internals/runtime/lib/mixins/container_proxy';
import './@ember/-internals/runtime/lib/mixins/registry_proxy';

import './@ember/application';
import './@ember/application/-private/event-dispatcher';
import './@ember/application/-private/registry';
Expand Down

0 comments on commit 30b66f3

Please sign in to comment.