ng-packagr
Version:
Compile and package Angular libraries in Angular Package Format (APF)
15 lines (14 loc) • 325 B
TypeScript
/**
* Common call signature for a command.
*
* @stable
*/
export interface Command<Arguments, Result> {
(args?: Arguments): Result | Promise<Result>;
}
/**
* Executes a Command and returns its promisified result.
*
* @stable
*/
export declare function execute<A, R>(command: Command<A, R>, args?: A): Promise<R>;