Replies: 1 comment
-
Hey @azsembler this is a weakness of Typescript unfortunately 😞 It's not possible to type the error that is thrown and/or pass it as a generic so the You'll have to do a bit of type trickery to tell your IDE and Typescript that the error you get back is of type If anyone knows a better way, I'd love to hear it! This is what I have to do in this case. |
Beta Was this translation helpful? Give feedback.
-
Hi, I used tryit(parallel) function to expect both result and error but the error return as type Error at new AggregateError.
When I try to print out err.errors, my IDE said err is type Error and it has only message name and stack.
I have no idea how to get the errors values like the document
Reference -> https://radash-docs.vercel.app/docs/async-parallel
Beta Was this translation helpful? Give feedback.
All reactions