UNPKG

416 BTypeScriptView Raw
1import { Factory } from './factory';
2export declare const OWNER = "__owner__";
3export declare function getOwner(object: object): Owner;
4export declare function setOwner(object: object, owner: Owner): void;
5export interface Owner {
6 identify(specifier: string, referrer?: string): string;
7 factoryFor(specifier: string, referrer?: string): Factory<any>;
8 lookup(specifier: string, referrer?: string): any;
9}