Interface DartOptions

interface DartOptions {
    collectionType?: "List";
    constraints: Constraints<DartOptions>;
    defaultPreset?: Partial<{
        class: ClassPresetType<DartOptions>;
        enum: EnumPresetType<DartOptions>;
    }>;
    dependencyManager?: AbstractDependencyManager | (() => AbstractDependencyManager);
    indentation?: {
        size: number;
        type: IndentationTypes;
    };
    presets?: Presets<Partial<{
        class: ClassPresetType<DartOptions>;
        enum: EnumPresetType<DartOptions>;
    }>>;
    processorOptions?: ProcessorOptions;
    typeMapping: TypeMapping<DartOptions, DartDependencyManager>;
}

Hierarchy (view full)

Properties

collectionType?: "List"
constraints: Constraints<DartOptions>
defaultPreset?: Partial<{
    class: ClassPresetType<DartOptions>;
    enum: EnumPresetType<DartOptions>;
}>

Type declaration

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<{
    class: ClassPresetType<DartOptions>;
    enum: EnumPresetType<DartOptions>;
}>>
processorOptions?: ProcessorOptions
typeMapping: TypeMapping<DartOptions, DartDependencyManager>