UNPKG

@glimmer/di

Version:

Dependency injection support for Glimmer applications.

10 lines (9 loc) 416 B
import { Factory } from './factory'; export declare const OWNER = "__owner__"; export declare function getOwner(object: object): Owner; export declare function setOwner(object: object, owner: Owner): void; export interface Owner { identify(specifier: string, referrer?: string): string; factoryFor(specifier: string, referrer?: string): Factory<any>; lookup(specifier: string, referrer?: string): any; }