Metakit / @doeixd/metakit/fn
and
function · packages/metakit/src/fnCombinators.ts:138
function and<
P1 extends ParamSchemas,
P2 extends ParamSchemas,
R1 extends boolean | null,
R2 extends boolean | null,
>(
f: Fn<P1, R1>,
g: Fn<P2, R2>,
): Fn<P1 & P2, boolean | (null extends R1 | R2 ? null : never)>Conjunction (f && g) of two boolean predicate Fns, merging their parameters, preconditions, and obligations.