This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
ajv-ts@0.4.0
Minor Changes
2b4dd9e: # Description
Add support for custom error message for any error.
Example:
import s from "ajv-ts";
const num = s.number().error("cannot be not a number");
const res1 = num.safeParse("some random string");
const res2 = num.safeParse("1.2");
console.error(res1.error.message); // cannot be not a number
console.error(res2.error.message); // cannot be not a number
res1.error instanceof Error; // true
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
ajv-ts@0.4.0
Minor Changes
2b4dd9e: # Description
Add support for custom error message for any error.
Example:
What's new
new feature: add support custom error message
Fixes
fix: issue with typescript #21
Thanks
@rjvim for submitting the issue