@@ -13,7 +13,7 @@ import type { FullName } from '@ember/owner';
1313import {
1414 ContainerProxyMixin ,
1515 RegistryProxyMixin ,
16- } from './-owner-mixin-imports' ;
16+ } from './-owner-mixin-imports.ts ' ;
1717
1818/**
1919 * Adds methods that are normally only on registry to the container. This is largely to support the legacy APIs
@@ -23,7 +23,7 @@ import {
2323 * @param {Object } container the container to modify
2424 */
2525function exposeRegistryMethodsWithoutDeprecations ( container : any ) {
26- let methods = [
26+ const methods = [
2727 'register' ,
2828 'unregister' ,
2929 'resolve' ,
@@ -38,7 +38,7 @@ function exposeRegistryMethodsWithoutDeprecations(container: any) {
3838 ] ;
3939
4040 for ( let i = 0 , l = methods . length ; i < l ; i ++ ) {
41- let methodName = methods [ i ] ;
41+ const methodName = methods [ i ] ;
4242
4343 if ( methodName && methodName in container ) {
4444 const knownMethod = methodName ;
@@ -87,7 +87,7 @@ const Owner = EmberObject.extend(RegistryProxyMixin, ContainerProxyMixin, {
8787 * @returns {Object } owner, container, registry
8888 */
8989export default function buildRegistry ( resolver : Resolver ) {
90- let namespace = new Application ( ) ;
90+ const namespace = new Application ( ) ;
9191 // @ts -ignore: this is actually the correcct type, but there was a typo in
9292 // Ember's docs for many years which meant that there was a matching problem
9393 // in the types for Ember's definition of `Engine`. Once we require at least
@@ -99,13 +99,13 @@ export default function buildRegistry(resolver: Resolver) {
9999 } ;
100100
101101 // @ts -ignore: this is private API.
102- let fallbackRegistry = Application . buildRegistry ( namespace ) ;
102+ const fallbackRegistry = Application . buildRegistry ( namespace ) ;
103103 // TODO: only do this on Ember < 3.13
104104 // @ts -ignore: this is private API.
105105 fallbackRegistry . register ( 'component-lookup:main' , Ember . ComponentLookup ) ;
106106
107107 // @ts -ignore: this is private API.
108- let registry = new Ember . Registry ( {
108+ const registry = new Ember . Registry ( {
109109 fallback : fallbackRegistry ,
110110 } ) ;
111111
@@ -123,7 +123,7 @@ export default function buildRegistry(resolver: Resolver) {
123123 // @ts -ignore: this is private API.
124124 registry . describe = fallbackRegistry . describe ;
125125
126- let owner = Owner . create ( {
126+ const owner = Owner . create ( {
127127 // @ts -ignore -- we do not have type safety for `Object.extend` so the type
128128 // of `Owner` here is just `EmberObject`, but we *do* constrain it to allow
129129 // only types from the actual class, so these fields are not accepted.
@@ -140,7 +140,7 @@ export default function buildRegistry(resolver: Resolver) {
140140 } ) as unknown as Owner ;
141141
142142 // @ts -ignore: this is private API.
143- let container = registry . container ( { owner : owner } ) ;
143+ const container = registry . container ( { owner : owner } ) ;
144144 // @ts -ignore: this is private API.
145145 owner . __container__ = container ;
146146
0 commit comments