Documentation
¶
Index ¶
Constants ¶
View Source
const LanguageRef = "typescript"
Variables ¶
This section is empty.
Functions ¶
func NewImportMap ¶
func NewImportMap(packagesImportMap map[string]string) *common.DirectImportMap
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct { PathPrefix string `yaml:"path_prefix"` // SkipRuntime disables runtime-related code generation when enabled. // Note: builders can NOT be generated with this flag turned on, as they // rely on the runtime to function. SkipRuntime bool `yaml:"skip_runtime"` // SkipIndex disables the generation of `index.ts` files. SkipIndex bool `yaml:"skip_index"` // OverridesTemplatesDirectories holds a list of directories containing templates // defining blocks used to override parts of builders/types/.... OverridesTemplatesDirectories []string `yaml:"overrides_templates"` // ExtraFilesTemplatesDirectories holds a list of directories containing // templates describing files to be added to the generated output. ExtraFilesTemplatesDirectories []string `yaml:"extra_files_templates"` // ExtraFilesTemplatesData holds additional data to be injected into the // templates described in ExtraFilesTemplatesDirectories. ExtraFilesTemplatesData map[string]string `yaml:"-"` // PackagesImportMap associates package names to their import path. PackagesImportMap map[string]string `yaml:"packages_import_map"` // EnumsAsUnionTypes generates enums as a union of values instead of using // an actual `enum` declaration. // If EnumsAsUnionTypes is false, an enum will be generated as: // “`ts // enum Direction { // Up = "up", // Down = "down", // Left = "left", // Right = "right", // } // “` // If EnumsAsUnionTypes is true, the same enum will be generated as: // “`ts // type Direction = "up" | "down" | "left" | "right"; // “` EnumsAsUnionTypes bool `yaml:"enums_as_union_types"` }
func (*Config) InterpolateParameters ¶
type Language ¶
type Language struct {
// contains filtered or unexported fields
}
func (*Language) CompilerPasses ¶
func (*Language) NullableKinds ¶
func (language *Language) NullableKinds() languages.NullableConfig
Click to show internal directories.
Click to hide internal directories.