UNPKG

@robotlegsjs/core

Version:

An architecture-based IoC framework for JavaScript/TypeScript

39 lines (38 loc) 1.24 kB
import { CommandPayload } from "../../commandCenter/api/CommandPayload"; import { ICommand } from "../../commandCenter/api/ICommand"; import { ICommandExecutor } from "../../commandCenter/api/ICommandExecutor"; import { ICommandMappingList } from "../../commandCenter/api/ICommandMappingList"; import { IDirectCommandConfigurator } from "../../directCommandMap/dsl/IDirectCommandConfigurator"; import { IClass } from "../../matching/IClass"; /** * @private */ export declare class DirectCommandMapper implements IDirectCommandConfigurator { private _mappings; private _mapping; private _executor; /** * @private */ constructor(executor: ICommandExecutor, mappings: ICommandMappingList, commandClass: IClass<ICommand>); /** * @inheritDoc */ withGuards(...guards: any[]): IDirectCommandConfigurator; /** * @inheritDoc */ withHooks(...hooks: any[]): IDirectCommandConfigurator; /** * @inheritDoc */ withPayloadInjection(value?: boolean): IDirectCommandConfigurator; /** * @inheritDoc */ execute(payload?: CommandPayload): void; /** * @inheritDoc */ map(commandClass: IClass<ICommand>): IDirectCommandConfigurator; }