UNPKG

@seagull/commands

Version:

Side Effect Functions implemented as Command Pattern for the Seagull Framework

15 lines (14 loc) 537 B
import { Command } from './Command'; export declare abstract class CommandService { static create<T extends CommandService>(this: new (...args: any) => T, ...args: any): Promise<T>; list: { [key: string]: Command; }; register(key: string, cmd: Command): void; remove(key: string): void; processOne(key: string): Promise<any>; processAll(): Promise<any[]>; processOnly(keys: string[]): Promise<any[]>; processWithout(keys: string[]): Promise<any[]>; abstract initialize(): Promise<void>; }