mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[ember] Ember.Container#factoryFor (#27483)
This commit is contained in:
parent
1cbfb298e6
commit
fbe2d02cb2
4
types/ember/index.d.ts
vendored
4
types/ember/index.d.ts
vendored
@ -311,6 +311,10 @@ declare module 'ember' {
|
||||
* Given a fullName return a corresponding instance.
|
||||
*/
|
||||
lookup(fullName: string, options?: {}): any;
|
||||
/**
|
||||
* Given a fullName return a corresponding factory.
|
||||
*/
|
||||
factoryFor(fullName: string, options?: {}): any;
|
||||
}
|
||||
const _ContainerProxyMixin: Mixin<_ContainerProxyMixin>;
|
||||
|
||||
|
||||
@ -15,3 +15,6 @@ appInstance.register('some:injection', class Foo {}, {
|
||||
singleton: false,
|
||||
instantiate: true,
|
||||
});
|
||||
|
||||
appInstance.factoryFor('router:main');
|
||||
appInstance.lookup('route:basic');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user