Skip to main content

realizeConfiguration

@the-codegen-project/cliDocs


Home / realizeConfiguration

Function: realizeConfiguration()

function realizeConfiguration(config): TheCodegenConfigurationInternal

Ensure that each generator has the default options along side custom properties

Parameters

ParameterType
configobject
config.$schema?string
config.generators( | { dependencies: string[]; id: string; language: "typescript"; outputPath: string; preset: "parameters"; serializationType: "json"; } | { dependencies: string[]; enum: "enum" | "union"; id: string; language: "typescript"; map: "map" | "indexedObject" | "record"; outputPath: string; preset: "payloads"; rawPropertyNames: boolean; serializationType: "json"; useForJavaScript: boolean; } | { dependencies: string[]; id: string; language: "typescript"; outputPath: string; parameterGeneratorId: string; payloadGeneratorId: string; preset: "channels"; protocols: "nats"[]; } | { channelsGeneratorId: string; dependencies: string[]; id: string; language: "typescript"; outputPath: string; preset: "client"; protocols: "nats"[]; } | { dependencies: string[]; id: string; language: "typescript"; outputPath: string; preset: "headers"; serializationType: "json"; } | { dependencies: string[]; id: string; options: any; preset: "custom"; renderFunction: (...args) => any; })[]
config.inputPathstring
config.inputType"asyncapi"
config.language?"typescript"

Returns

TheCodegenConfigurationInternal

Defined in

src/codegen/configurations.ts:93