Metakit / @doeixd/metakit/fn
map
function · packages/metakit/src/fnBuild.ts:348
function map<P extends ParamSchemas, R, R2>(
f: Fn<P, R>,
transform: (
result: ExprType<ParamValues<P>, R>,
params: ParamPaths<P>,
) => ExprInput<ParamValues<P>, R2>,
): Fn<P, R2>Transform f's output expression while preserving params, whereClauses, and intermediate obligations.