Entity / foldkit-entity
ValueOf
type · packages/entity/src/expr/operand.ts:109
type ValueOf<E> =
E extends EntityField<string, string, infer S>
? Schema.Schema.Type<S>
: E extends EntityRelation<
string,
string,
infer Target,
'one',
infer Optional
>
? IdOf<Target> | (Optional extends true ? null : never)
: E extends Expr<infer T>
? T
: neverWhat an operand is worth, so a comparison's other side is checked against it.