-
-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Your use case
When defining a custom error handler using useGqlError I'd like to write a type safe function, e.g.:
Instead of:
useGqlError((err) => {
console.error(err)
})I want to write:
useGqlError((err: GqlError) => {
// Access err in a type safe way...
})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
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request