From 2c5610e54554af2f023a0ab5bf3f28ad154221a6 Mon Sep 17 00:00:00 2001 From: mccraig mccraig of the clan mccraig Date: Mon, 6 Nov 2023 15:58:15 +0000 Subject: [PATCH] $ExpectType comments --- refine_map_multi_service.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/refine_map_multi_service.ts b/refine_map_multi_service.ts index 8195a17..70f3525 100644 --- a/refine_map_multi_service.ts +++ b/refine_map_multi_service.ts @@ -263,8 +263,36 @@ export const stepSpecs = [ // each step's f and serviceFn is checked against the accumulated object from the previous steps // program to build an Object by chaining the accumulating Object through the steps +// +// $ExpectType const chainProg: (arg: { +// data: { +// org_nick: string; +// user_id: string; +// }; +// }) => Effect.Effect export const chainProg = chainObjectStepsProg<{ data: { org_nick: string, user_id: string } }>()(stepSpecs) // program to build an Object by mapping each step over it's corresponding input value +// +// $ExpectType const tupleProg: (inputs: [{ +// data: { +// org_nick: string; +// }; +// }, { +// data: { +// user_id: string; +// }; +// org: Org; +// }]) => Effect.Effect export const tupleProg = tupleMapObjectStepsProg<[{ data: { org_nick: string } }, { data: { user_id: string }, org: Org }]>()(stepSpecs)