Skip to content

Commit

Permalink
Types changes are not relevant here
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Aug 15, 2024
1 parent 76f5e35 commit f78fa0f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ import require, { has } from 'require';
import Ember from 'ember';

import type { FullName } from '@ember/owner';
import type Owner from '@ember/owner';

// These shenanigans work around the fact that the import locations are not
// public API and are not stable, so we jump through hoops to get the right
// types and values to use.
import {
ContainerProxyMixin,
RegistryProxyMixin,
type _RegistryProxyMixin,
type _ContainerProxyMixin,
} from './-owner-mixin-imports';

/**
Expand Down Expand Up @@ -56,6 +53,7 @@ function exposeRegistryMethodsWithoutDeprecations(container: any) {
// NOTE: this is the same as what `EngineInstance`/`ApplicationInstance`
// implement, and is thus a superset of the `InternalOwner` contract from Ember
// itself.
interface Owner extends RegistryProxyMixin, ContainerProxyMixin {}
const Owner = EmberObject.extend(RegistryProxyMixin, ContainerProxyMixin, {
_emberTestHelpersMockOwner: true,

Expand Down

0 comments on commit f78fa0f

Please sign in to comment.