Entity / foldkit-entity

ValueOf

type · packages/entity/src/expr.ts:222

type ValueOf<E> =
  E extends EntityField<string, string, infer S>
    ? Schema.Schema.Type<S>
    : E extends Predicate
      ? boolean
      : E extends Expr<infer T>
        ? T
        : never

What an operand is worth, so a comparison's other side is checked against it.