hubot-command-mapper
Version:
Helps with mapping tools and commands to Hubot.
23 lines (22 loc) • 743 B
text/typescript
import { ParameterBase } from "./ParameterBase.mjs";
/**
* The "any" parameter captures anything until a new parameter is met.
* @class RestParameter
* @extends {ParameterBase}
*/
export declare class AnyParameter extends ParameterBase {
/**
* Captures everything until the end of the string.
*
* @readonly
* @memberof RestParameter
*/
get regex(): string;
/**
* Creates an instance of AnyParameter.
* @param {string} name The name of the parameter. Can be used to identify the parameter value as well.
* @param {any} [defaultValue=null] When a value is given, the parameter becomes optional.
* @memberof AnyParameter
*/
constructor(name: string, defaultValue?: string);
}