UNPKG

613 BTypeScriptView Raw
1import { NoParameters } from "@atomist/automation-client/lib/SmartParameters";
2import { CommandListener } from "../listener/CommandListener";
3import { CommandRegistration } from "./CommandRegistration";
4/**
5 * Type for registering a project edit, which can encapsulate changes
6 * to projects. One of listener or createCommand function must be provided.
7 */
8export interface CommandHandlerRegistration<PARAMS = NoParameters> extends CommandRegistration<PARAMS> {
9 /**
10 * Callback executing the command
11 */
12 listener: CommandListener<PARAMS>;
13}
14//# sourceMappingURL=CommandHandlerRegistration.d.ts.map
\No newline at end of file