hubot-command-mapper
Version:
Helps with mapping tools and commands to Hubot.
15 lines (14 loc) • 464 B
text/typescript
import { ITool, ICommand } from "../index.mjs";
/**
* Validates the tool and throws and exception if the
* tool is invalid.
* @param tool The tool.
*/
export default function validateToolAndThrowWhenInvalid(tool: ITool): void;
/**
* Validates the command and throws an exception if
* the command is invalid.
* @param tool The tool.
* @param cmd The command.
*/
export declare function validateCommandAndThrowWhenInvalid(tool: ITool, cmd: ICommand): void;