UNPKG

@robotlegsjs/core

Version:

An architecture-based IoC framework for JavaScript/TypeScript

34 lines (33 loc) 785 B
/** * @private */ export interface ICommandConfigurator { /** * Guards to check before allowing a command to execute * * @param guards Guards * @return Self */ withGuards(...guards: any[]): ICommandConfigurator; /** * Hooks to run before command execution * * @param hooks Hooks * @return Self */ withHooks(...hooks: any[]): ICommandConfigurator; /** * Should this command only run once? * * @param value Toggle * @return Self */ once(value?: boolean): ICommandConfigurator; /** * Should the payload values be injected into the command instance? * * @param value Toggle * @return Self */ withPayloadInjection(value?: boolean): ICommandConfigurator; }