Closed kalysr closed 2 years ago
I think
combine(
_paramDecode,
_paramDecode2,
_queryDecode,
_bodyDecode,
),
can be achieved currently with something like
pipe(
H.bindTo('param', _paramDecode),
H.bind('param2', () => _paramDecode),
H.bind('query', () => _queryDecode),
H.bind('body', () => _bodyDecode),
H.ichain(({ param, param2, query, body }) => ...))
while preserving types of the params, query, and body you've decoded with.
Thank you so much!
🚀 Feature request
I want all decoders to be able to be combined so that the typing is still preserved
Current Behavior
Desired Behavior
My environment