# DIConfiguration Service

Module
import { DIConfiguration } from "@tsed/di"
Source/packages/di/src/services/DIConfiguration.ts

# Overview

class DIConfiguration {
    readonly default: Map<string, any>;
    protected map: Map<string, any>;
    [key: string]: any;
    constructor(initialProps?: {});
    get scopes(): {
        [key: string]: ProviderScope;
    };
    set scopes(value: {
        [key: string]: ProviderScope;
    });
    get resolvers(): IDIResolver[];
    set resolvers(resolvers: IDIResolver[]);
    get imports(): TokenProvider[];
    set imports(imports: TokenProvider[]);
    /**
     *
     * @param callbackfn
     * @param thisArg
     */
    forEach(callbackfn: (value: any, index: string, map: Map<string, any>) => void, thisArg?: any): void;
    /**
     *
     * @param propertyKey
     * @param value
     */
    set(propertyKey: string | Partial<TsED.Configuration>, value?: any): this;
    setRaw(propertyKey: string, value: any): this;
    /**
     *
     * @param propertyKey
     * @returns {undefined|any}
     */
    get<T = any>(propertyKey: string): T;
    getRaw(propertyKey: string): any;
    merge(obj: Partial<TsED.Configuration>): void;
    /**
     *
     * @param value
     * @returns {any}
     */
    resolve(value: any): any;
    build(): void;
}