@lifeart/gxt
Version:
<img align="right" width="95" height="95" alt="Philosopher’s stone, logo of PostCSS" src="./public/logo.png">
13 lines (12 loc) • 547 B
TypeScript
export declare const OWNER: unique symbol;
/**
Framework objects in a Glimmer application may receive an owner object.
Glimmer is unopinionated about this owner, but will forward it through its
internal resolution system, and through its managers if it is provided.
*/
export declare function getOwner<O extends object = object>(object: object): O | undefined;
/**
`setOwner` set's an object's owner
*/
export declare function setOwner<O extends object = object>(object: object, owner: O): void;
export declare function createOwner(): {};