catch clause must be any or unknown

GutoTrosla answered on March 27, 2024 Popularity 2/10 Helpfulness 9/10

Contents


More Related Answers


catch clause must be any or unknown

1

Typescript doesn't let you do that because there's no way that typescript can verify at compile time that the only thing the code can throw is a ValidationError. 

Popularity 2/10 Helpfulness 9/10 Language typescript
Link to this answer
Share Copy Link
Contributed on Mar 27 2024
GutoTrosla
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.