mobx-state-tree
Version:
Opinionated, transactional, MobX powered state container
8 lines (7 loc) • 309 B
TypeScript
import { IType } from "../../core/type/type";
interface LazyOptions<T extends IType<any, any, any>, U> {
loadType: () => Promise<T>;
shouldLoadPredicate: (parent: U) => boolean;
}
export declare function lazy<T extends IType<any, any, any>, U>(name: string, options: LazyOptions<T, U>): T;
export {};