Interface RefConstructor<T>

A ref constructor for custom refs

interface RefConstructor<T> {
    [customRefTypeSymbol]: T;
    refClass: ModelClass<Ref<T>>;
    <TE>(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>>