Replies: 3 comments 1 reply
-
What you want is getting the reason by returned value instead of the |
Beta Was this translation helpful? Give feedback.
0 replies
-
If make a new function, its name would be Can you make an issue and design the reason structure as an object structure? Implementation would not hard and may be possible at this Saturday. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Have implemented |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
would it be possible to add an explanation on why the
.is
or the.assertType
failed?Something like io-ts which in the event of an error has a data structure describing why the type checking failed.
For example, in a call to service I expect to receive a JSON of type T, in the case
.is
returns false i would like to give to the end user an explanatory error.Beta Was this translation helpful? Give feedback.
All reactions