Closed dan-muller closed 6 months ago
Hi @dan-muller , this is intentional and it is documented in our FAQ.
It is a consequence of the use of parsers on the input of the domain functions. We are currently creating a new type of function called Composable
that will have no parsers, but it will be type-safe.
For more context on these design decisions check issues #80 and #126.
You can also see most of the work on the new Composable
type on the PR #121
The composable APIs are already packaged in the latest version of the library, however, they are undocumented and the API is still unstable, so use it at your own risk :wink:
Got it! Thanks @diogob
Hey @dan-muller , just pinging you as we released composable-functions
today which is v4 of this library.
You should now be able to get type checked arguments of your compositions as expected.
Check out the new README ;)
For Example:
I am not sure if this was intentional but it would make this an even better tool!