Export ValidationError as a class
#84
Unanswered
hoangtubienxanh
asked this question in
Q&A
Replies: 1 comment
-
|
Fixed it in v2.5.1 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
My use case requires me to extract json from http error code:
https://github.com/L-Blondy/up-fetch?tab=readme-ov-file#%EF%B8%8F-advanced-usage
Here's a snippet of my code:
Problem:
'ValidationError' cannot be used as a value because it was imported using 'import type'.
https://github.com/L-Blondy/up-fetch/blob/0a8f841a09aed4369d53b0820aad341dd4d8a63e/src/index.ts
I wonder if we could make ValidationError as a class export instead. Similar to ResponseError
Beta Was this translation helpful? Give feedback.
All reactions