UNPKG

@sensinum/astro-strapi-loader

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