UNPKG

mobx-keystone-mindreframer

Version:

A MobX powered state management solution based on data trees with first class support for Typescript, snapshots, patches and much more

21 lines (20 loc) 511 B
import { Ref } from "../ref/Ref"; import type { IdentityType } from "./schemas"; import { TypeInfo } from "./TypeChecker"; /** * A type that represents a reference to an object or model. * * Example: * ```ts * const refToSomeObject = types.ref<SomeObject>() * ``` * * @typeparam O Object or model type. * @returns */ export declare function typesRef<O extends object>(): IdentityType<Ref<O>>; /** * `types.ref` type info. */ export declare class RefTypeInfo extends TypeInfo { }