@zhead/zod
The @zhead/schema
transformed to [Zod](https://github.com/colinhacks/zod].
Provides safe parsing and validation of head schema.
Installation
npm install --save-dev @zhead/zod
yarn add --dev @zhead/zod
API
All exports are Zod based schemas and can be individually used to validate any part of the head schema.
Example
If you'd like to parse or validate the full head schema you can do the following
import { headSchema } from "@zhead/zod"
headSchema.safeParse({
title: 'Test title',
meta: [
{ description: 'My Description' }
]
})