turbodombuilder - v0.9.66
    Preparing search index...

    Type Alias MvcProperties<ViewType, ModelType, EmitterType>

    The element's data type, if any.

    Type representing a configuration object for an Mvc instance.

    type MvcProperties<
        ViewType extends TurboView = TurboView<any, any>,
        ModelType extends TurboModel = TurboModel,
        EmitterType extends TurboEmitter = TurboEmitter,
    > = {
        view?: MvcInstanceOrConstructor<ViewType, TurboViewProperties>;
        model?:
            | ModelType
            | (new (data?: any, dataBlocksType?: "map" | "array") => ModelType);
        emitter?: MvcInstanceOrConstructor<EmitterType, ModelType>;
        operators?: MvcManyInstancesOrConstructors<
            TurboOperator,
            TurboOperatorProperties,
        >;
        handlers?: MvcManyInstancesOrConstructors<TurboHandler, ModelType>;
        interactors?: MvcManyInstancesOrConstructors<
            TurboInteractor,
            TurboInteractorProperties,
        >;
        tools?: MvcManyInstancesOrConstructors<TurboTool, TurboToolProperties>;
        enforcers?: MvcManyInstancesOrConstructors<
            TurboEnforcer,
            TurboEnforcerProperties,
        >;
    }

    Type Parameters

    Index

    Properties

    view?: MvcInstanceOrConstructor<ViewType, TurboViewProperties>

    The view (or view constructor) to attach.

    model?:
        | ModelType
        | (new (data?: any, dataBlocksType?: "map" | "array") => ModelType)

    The model (or model constructor) to attach.

    emitter?: MvcInstanceOrConstructor<EmitterType, ModelType>

    The emitter (or emitter constructor) to attach. If not defined, a default TurboEmitter will be created.

    operators?: MvcManyInstancesOrConstructors<
        TurboOperator,
        TurboOperatorProperties,
    >

    The operator, constructor of operator, or array of the latter, to attach.

    handlers?: MvcManyInstancesOrConstructors<TurboHandler, ModelType>

    The handler, constructor of handler, or array of the latter, to attach.

    interactors?: MvcManyInstancesOrConstructors<
        TurboInteractor,
        TurboInteractorProperties,
    >

    The interactor, constructor of interactor, or array of the latter, to attach.

    tools?: MvcManyInstancesOrConstructors<TurboTool, TurboToolProperties>

    The tool, constructor of tool, or array of the latter, to attach.

    enforcers?: MvcManyInstancesOrConstructors<
        TurboEnforcer,
        TurboEnforcerProperties,
    >

    The enforcer, constructor of enforcer, or array of the latter, to attach.