UNPKG

@baseplate-dev/core-generators

Version:

Core generators for Baseplate

39 lines 1.49 kB
import { z } from 'zod'; export declare const templateFileOptionsSchema: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"singleton">>>; /** * The path of the template in the generator's `templates/` directory. * * Defaults to template path if not provided. */ generatorTemplatePath: z.ZodOptional<z.ZodString>; /** * The path root relative path of the template. * * This overrides the default detected path root relative path and should be used sparingly, e.g. * in cases where you want to override the default path root relative path for a singleton template. */ pathRootRelativePath: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { kind: "singleton"; generatorTemplatePath?: string | undefined; pathRootRelativePath?: string | undefined; }, { kind?: "singleton" | undefined; generatorTemplatePath?: string | undefined; pathRootRelativePath?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"instance">; /** * The path of the template in the generator's `templates/` directory. */ generatorTemplatePath: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "instance"; generatorTemplatePath: string; }, { kind: "instance"; generatorTemplatePath: string; }>]>>; export type TemplateFileOptions = z.infer<typeof templateFileOptionsSchema>; //# sourceMappingURL=template-file-options.d.ts.map