Metakit / @doeixd/metakit/aggregates

min

function · packages/metakit/src/aggregates.ts:370

function min<S extends Schema.Top>(
  rowSchema: S,
  build: (
    $: PathAccessor<S['Type'], S['Type']>,
  ) => ExprInput<S['Type'], number | null>,
): Min<S['Type']>

Semilattice aggregate: the smallest non-null value (Option.none() when there is none), refused non-finite where a value is NaN or an infinity.