-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow type safe usage of useGqlError #468
Labels
enhancement
New feature or request
Comments
It seems to me that GqlError could be included in the dist in some way... |
Merged
I made a PR to export the type |
@mariopries Thanks for taking the time to address this! Your fix has been merged into the latest release. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your use case
When defining a custom error handler using
useGqlError
I'd like to write a type safe function, e.g.:Instead of:
I want to write:
The solution you'd like
I'd like to import the type
GqlError
. Could not find a working export. (Ideally, this would be reflected in the docs)Possible alternatives
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: