Skip to content

langium-zod / DEFAULT_OUTPUT_PATH

Variable: DEFAULT_OUTPUT_PATH

ts
const DEFAULT_OUTPUT_PATH: "src/generated/zod-schemas.ts" = 'src/generated/zod-schemas.ts';

Defined in: config.ts:185

Default output path used when no explicit outputPath is provided and the project's langium-config.json does not declare an out directory.

Remarks

This constant is used by the CLI when neither --out nor the langium-config.jsonout field provides an output location. Programmatic callers that do not set config.outputPath will not write to disk regardless of this constant — the generated source is returned as a string only.

Default Value

'src/generated/zod-schemas.ts'

See

ZodGeneratorConfig

Released under the MIT License.