UNPKG

@sensinum/astro-strapi-loader

Version:
12 lines (11 loc) 450 B
import { z } from "zod"; import type { StrapiContentType } from "../types/strapi"; export declare class StrapiSchemaGenerator { private contentTypes; private strict; constructor(contentTypes: Array<StrapiContentType>, strict?: boolean); private generateAttributeSchema; private generateContentTypeSchema; generateSchema(contentTypeName: string): z.ZodObject<any>; generateAllSchemas(): Record<string, z.ZodObject<any>>; }