@baseplate-dev/sync
Version:
Library for syncing Baseplate descriptions
41 lines • 1.37 kB
TypeScript
import { z } from 'zod';
/**
* Schema for a single template configuration in the extractor.json file
*/
export declare const templateConfigSchema: z.ZodObject<{
/**
* Source file path relative to templates directory
*/
sourceFile: z.ZodString;
/**
* Type of the template. For example, it can be `ts` for typescript templates.
*/
type: z.ZodString;
}, z.core.$loose>;
/**
* Main schema for extractor.json configuration
*/
export declare const extractorConfigSchema: z.ZodObject<{
name: z.ZodString;
templates: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodObject<{
/**
* Source file path relative to templates directory
*/
sourceFile: z.ZodString;
/**
* Type of the template. For example, it can be `ts` for typescript templates.
*/
type: z.ZodString;
}, z.core.$loose>>>;
extractors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{}, z.core.$loose>>>;
plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{}, z.core.$loose>>>;
}, z.core.$strip>;
/**
* Type for a single template configuration
*/
export type TemplateConfig = z.infer<typeof templateConfigSchema>;
/**
* Type for extractor configuration
*/
export type ExtractorConfig = z.infer<typeof extractorConfigSchema>;
//# sourceMappingURL=extractor-config.schema.d.ts.map