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.6.2
Patch Changes
37b57f2: make object schema accept object type.
What's new
Object
make object schema accept generic object type.
import s from "ajv-ts";
type CustomObj = {
name: string;
age: number;
};
// Before
const before = s.object<CustomObj>(); // error, accept another definition
// After
s.object<CustomObj>(); // OK now
Zod compatibility
describe - add description to your schema. This method for zod compatibility.
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.6.2
Patch Changes
37b57f2: make object schema accept object type.
What's new
Object
make object schema accept generic object type.
Zod compatibility
describe
- adddescription
to your schema. This method forzod
compatibility.