Skip to main content

Module codegen

Module codegen 

Source
Expand description

aura types: generate host-language types from a manifest’s type and enum declarations (SPEC §7.2).

One schema, two jobs: it validates the config and types the service that consumes the resulting JSON. Emission works on the AST (not on values), so a manifest never has to be evaluated — no I/O, no capabilities involved.

Optional fields (D15) are emitted as required: evaluation always inserts the default, so the JSON a consumer receives always carries the field.

Enums§

Lang

Functions§

generate
Generate types for every type and enum declared in src.