Skip to content
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

[Feature Request] Define an implementation for return type of error #1227

Open
ericd33 opened this issue Apr 9, 2024 · 0 comments
Open

[Feature Request] Define an implementation for return type of error #1227

ericd33 opened this issue Apr 9, 2024 · 0 comments

Comments

@ericd33
Copy link

ericd33 commented Apr 9, 2024

const { error } = useAnything()

error returns a type of

QueryError | null

Inside this type it returns a field "issues" of type unknown

Explicit type is needed here to avoid manual casting when working with this error object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant