Interface RefConstructor<T>

A ref constructor for custom refs

interface RefConstructor<T extends object> {
    "[customRefTypeSymbol]": T;
    refClass: ModelClass<Ref<T>>;
    <TE extends object>(valueOrID: string | TE): Ref<TE>;
}

Type Parameters

  • T extends object
  • Type Parameters

    • TE extends object

    Parameters

    • valueOrID: string | TE

    Returns Ref<TE>

Properties

"[customRefTypeSymbol]": T
refClass: ModelClass<Ref<T>>