ResolveRef<RefShape, RefBag>: ResolveRefValueArrayTraits<RefShape, ApplyRequiredness<RefShape["link"] extends keyof RefBag
    ? RefBag[RefShape["link"]]["type"]
    : never, RefShape["valueRequired"]>>

Dereferences an a.ref() against a given "bag" of independently resolved types.

This util will examine the ref for requiredness and array-ness and wrap/augment to referred-to type accordingly.

Type Parameters

  • RefShape extends RefTypeParamShape

  • RefBag extends Record<string, {
        __entityType: string;
        type: unknown;
    }>