@sensinum/astro-strapi-loader
Version:
Astro loader for Strapi CMS
12 lines (11 loc) • 450 B
TypeScript
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>>;
}