zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

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

Open ericd33 opened this issue 1 year ago • 0 comments

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.

ericd33 avatar Apr 09 '24 14:04 ericd33