Skip to content

Files

Latest commit

73a5cbd · Sep 13, 2021

History

History
66 lines (37 loc) · 1.69 KB

RenderConfiguration.md

File metadata and controls

66 lines (37 loc) · 1.69 KB

ts-gyb / Exports / RenderConfiguration

Interface: RenderConfiguration

Renderer configuration

Table of contents

Properties

Properties

namedTypesOutputPath

namedTypesOutputPath: string

Output path for named types. If it is a relative path, it will be resolved based on the configuration file path.


namedTypesTemplatePath

namedTypesTemplatePath: string

Template path for named types. Must be a mustache template. If it is a relative path, it will be resolved based on the configuration file path.

For example, code-templates/named-types.mustache.


outputPath

outputPath: Record<string, string>

Scoped output directories or paths. The key is the scope name and the value is the output directory or file path.

If it is a relative path, it will be resolved based on the configuration file path.

For example, { "api": "../ios/AppTarget/Generated" }


templates

templates: Record<string, string>

Scoped template file paths. The key is the scope name and the value is the template file path. If it is a relative path, it will be resolved based on the configuration file path.


typeNameMap

Optional typeNameMap: Record<string, string>

The mapping from predefinedTypes to the existing types in the target language (Kotlin/Swift).

For example, { "CodeGen_Int": "Int" }.