We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, thank you for creating this library!
I wonder if we can re-export AsyncValidationError in this line?
async-validator/src/index.ts
Lines 1 to 8 in b9a84a7
Something like this:
export { AsyncValidationError } from './util'
This is so that, if we use it with async/await, we can do something like this, similar like what we usually do with axios and AxiosError:
axios
AxiosError
import { AsyncValidationError } from 'async-validator' try { await schema.validate(...) } catch (err) { if (err instanceof AsyncValidationError) { // Do stuff... } }
I can open a PR if it's possible, let me know what you think. Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello, thank you for creating this library!
I wonder if we can re-export AsyncValidationError in this line?
async-validator/src/index.ts
Lines 1 to 8 in b9a84a7
Something like this:
This is so that, if we use it with async/await, we can do something like this, similar like what we usually do with
axios
andAxiosError
:I can open a PR if it's possible, let me know what you think. Thanks!
The text was updated successfully, but these errors were encountered: