Skip to content

TypeScript API / @laikacms/astro/loader / ZodTypeLike

Interface: ZodTypeLike ​

A Zod schema, seen only as "a thing that can be made optional".

No index signature: a real Zod schema is a class instance, and a class is not assignable to a type with an index signature — which would make the whole ZodNamespace reject the actual z from astro:content.

Methods ​

optional() ​

ts
optional(): ZodTypeLike;

Returns ​

ZodTypeLike

Released under the MIT License.