Interface GoOptions

interface GoOptions {
    constraints: Constraints<GoOptions>;
    defaultPreset?: Partial<{
        enum: EnumPresetType<any>;
        struct: StructPresetType<any>;
        union: UnionPresetType<any>;
    }>;
    dependencyManager?: AbstractDependencyManager | (() => AbstractDependencyManager);
    indentation?: {
        size: number;
        type: IndentationTypes;
    };
    presets?: Presets<Partial<{
        enum: EnumPresetType<any>;
        struct: StructPresetType<any>;
        union: UnionPresetType<any>;
    }>>;
    processorOptions?: ProcessorOptions;
    typeMapping: TypeMapping<GoOptions, GoDependencyManager>;
    unionAnyModelName: string;
    unionArrModelName: string;
    unionDictModelName: string;
}

Hierarchy (view full)

Properties

constraints: Constraints<GoOptions>
defaultPreset?: Partial<{
    enum: EnumPresetType<any>;
    struct: StructPresetType<any>;
    union: UnionPresetType<any>;
}>

Type declaration

  • enum: EnumPresetType<any>
  • struct: StructPresetType<any>
  • union: UnionPresetType<any>
dependencyManager?: AbstractDependencyManager | (() => AbstractDependencyManager)

This dependency manager type serves two functions.

  1. It can be used to provide a factory for generate functions
  2. It can be used to provide a single instance of a dependency manager, to add all dependencies together

This depends on context and where it's used.

Type declaration

    • (): AbstractDependencyManager
    • Returns AbstractDependencyManager

indentation?: {
    size: number;
    type: IndentationTypes;
}

Type declaration

presets?: Presets<Partial<{
    enum: EnumPresetType<any>;
    struct: StructPresetType<any>;
    union: UnionPresetType<any>;
}>>
processorOptions?: ProcessorOptions
typeMapping: TypeMapping<GoOptions, GoDependencyManager>
unionAnyModelName: string

Change default name for any models.

unionArrModelName: string

Change default name for Array models.

unionDictModelName: string

Change default name for Dictionary Models.