-
Notifications
You must be signed in to change notification settings - Fork 35
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
chore: make js errors more robust #232
Conversation
tree?: QuaryError | ||
} | ||
|
||
export function isQuaryError(value: any): value is QuaryError { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unknown potentially a more accurate type
export function isQuaryError(value: any): value is QuaryError { | |
export function isQuaryError(value: unknown): value is QuaryError { |
) | ||
} | ||
|
||
export function toString(error: QuaryError): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I worry that toString is a bit generic - maybe quaryErrorToString or formatQuaryError?
This will be so much better 🚀 |
No description provided.