RouterBuilder.handler(api, 'handler', req =>
pipe(
// the type here is hard to type for this function
// I either need it to inferred or have a way of typing the request for the purposes of the fn definition.
// How can I derive this type? Just must together my schemas with Schema.Schema.Type<typeof schema> & ...other schemas?
checkForSetCookie(req),
Effect.flatMap(index =>
mapJourneyToResponse(req.query.authIndexValue, index),
),
),
);
RouterBuilder.handler(api, 'handler', req =>
pipe(
// the type here is hard to type for this function
// I either need it to inferred or have a way of typing the request for the purposes of the fn definition.
// How can I derive this type? Just must together my schemas with Schema.Schema.Type<typeof schema> & ...other schemas?
checkForSetCookie(req),
Effect.flatMap(index =>
mapJourneyToResponse(req.query.authIndexValue, index),
),
),
);