Skip to content

langium-zod / generateDomainSchemas

Function: generateDomainSchemas() ​

ts
function generateDomainSchemas(config): string;

Defined in: api.ts:258

Programmatic entry point for the domain target. Runs the same extract pipeline as generateZodSchemas, then emits the domain surface (read interfaces + toDomain projection + field-precise write accessors). Writes to config.domainOutputPath when set.

Parameters ​

ParameterType
configZodGeneratorConfig

Returns ​

string

Released under the MIT License.