# scaffoldConfigSchema | Simple Scaffold
const scaffoldConfigSchema ZodUnion\; subdir ZodOptional\\>; overwrite ZodOptional\\>; dryRun ZodOptional\\>; subdirHelper ZodOptional\\>; message ZodOptional\; default ZodOptional\\]\>\>\>; \}, $strip\>\>\>; beforeWrite ZodOptional\\>; tmpDir: ZodOptional\; \}, $strip\>

Skip to main content

# `scaffoldConfigSchema`

> `const` scaffoldConfigSchema: `ZodObject`<{ `name`: `ZodString`; `templates`: `ZodArray`<`ZodString`>; `output`: `ZodUnion`<readonly [`ZodString`, `ZodAny`]>; `subdir`: `ZodOptional`<`ZodBoolean`>; `data`: `ZodOptional`<`ZodRecord`<`ZodString`, `ZodUnknown`>>; `overwrite`: `ZodOptional`<`ZodUnion`<readonly [`ZodBoolean`, `ZodAny`]>>; `logLevel`: `ZodOptional`<`ZodEnum`<{ `none`: `"none"`; `debug`: `"debug"`; `info`: `"info"`; `warning`: `"warning"`; `error`: `"error"`; }>>; `dryRun`: `ZodOptional`<`ZodBoolean`>; `helpers`: `ZodOptional`<`ZodRecord`<`ZodString`, `ZodAny`>>; `subdirHelper`: `ZodOptional`<`ZodString`>; `inputs`: `ZodOptional`<`ZodRecord`<`ZodString`, `ZodObject`<{ `type`: `ZodOptional`<`ZodEnum`<{ `number`: `"number"`; `text`: `"text"`; `select`: `"select"`; `confirm`: `"confirm"`; }>>; `message`: `ZodOptional`<`ZodString`>; `required`: `ZodOptional`<`ZodBoolean`>; `default`: `ZodOptional`<`ZodUnion`<readonly [`ZodString`, `ZodBoolean`, `ZodNumber`]>>; `options`: `ZodOptional`<`ZodArray`<`ZodUnion`<readonly [`ZodString`, `ZodObject`<..., ...>]>>>; }, `$strip`>>>; `beforeWrite`: `ZodOptional`<`ZodAny`>; `afterScaffold`: `ZodOptional`<`ZodUnion`<readonly [`ZodString`, `ZodAny`]>>; `tmpDir`: `ZodOptional`<`ZodString`>; }, `$strip`>

Defined in: validate.ts:72

Zod schema for ScaffoldConfig.