@lifeart/gxt
Version:
<img align="right" width="95" height="95" alt="Philosopher’s stone, logo of PostCSS" src="./public/logo.png">
8 lines (7 loc) • 491 B
TypeScript
export type DestructorFn = () => void | Promise<void> | Promise<void[]>;
export type Destructors = Array<DestructorFn>;
export declare function destroySync(ctx: object): void;
export declare function destroy(ctx: object, promises?: Array<Promise<void>>): void;
export declare function registerDestructor(ctx: object, ...fn: Destructors): void;
export declare function isDestroyed(ctx: object): boolean;
export declare function associateDestroyableChild(parent: object, child: object): void;