UNPKG

@baseplate-dev/sync

Version:

Library for syncing Baseplate descriptions

28 lines 1.12 kB
import { z } from 'zod'; export declare const templateFileMetadataBaseSchema: z.ZodObject<{ name: z.ZodString; type: z.ZodString; generator: z.ZodString; }, z.core.$strip>; export type TemplateFileMetadataBase = z.infer<typeof templateFileMetadataBaseSchema>; /** * Schema for individual template info in .templates-info.json */ export declare const templateInfoSchema: z.ZodObject<{ template: z.ZodString; generator: z.ZodString; instanceData: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>; }, z.core.$strip>; export type TemplateInfo<TInstanceData extends Record<string, unknown> = Record<string, unknown>> = z.infer<typeof templateInfoSchema> & { instanceData?: TInstanceData | undefined; }; /** * Schema for the entire .templates-info.json file */ export declare const templatesInfoFileSchema: z.ZodRecord<z.ZodString, z.ZodObject<{ template: z.ZodString; generator: z.ZodString; instanceData: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>; }, z.core.$strip>>; export type TemplatesInfoFile = z.infer<typeof templatesInfoFileSchema>; //# sourceMappingURL=metadata.d.ts.map