Type Alias EntityValue<E, P>Protected

EntityValue<E, P>: E extends Record<P, infer V> | Partial<Record<P, infer V>>
    ? V
    : never

Returns the value type of a property P of an Entity type.

Type Parameters

  • E extends Entity

    The Entity type.

  • P extends PropertyKey

    The property key.