UNPKG

hubot-command-mapper

Version:
28 lines (27 loc) 870 B
import { ParameterBase } from "./ParameterBase.mjs"; /** * Parameter that will capture a string. This is an continued * string of letters without spaces or a string that is surrounded * by quotes. * * @export * @class StringParameter * @extends {ParameterBase} */ export declare class StringParameter extends ParameterBase { defaultValue: string; /** * Capture a quoted array or anything without spaces. * * @readonly * @memberof StringParameter */ get regex(): string; /** * Creates an instance of StringParameter. * @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 StringParameter */ constructor(name: string, defaultValue?: string); }