Can ElectroError
be exported as a class please?
#157
arpadgabor
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
Great idea 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@arpadgabor Error classes are now exported in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At the moment the
ElectroError
is exported as an interface. Most libraries export these errors so we can easily check if an error is of theirs witherror instanceOf ElectroError
and we are also getting nice type safety this way. I see the error is already declared as a class inside JS but the type definitions export it as an interface.Beta Was this translation helpful? Give feedback.
All reactions