UNPKG

617 BTypeScriptView Raw
1import TreeRegexp from './TreeRegexp';
2import ParameterType from './ParameterType';
3import Group from './Group';
4export default class Argument<T> {
5 readonly group: Group;
6 readonly parameterType: ParameterType<T>;
7 static build(treeRegexp: TreeRegexp, text: string, parameterTypes: Array<ParameterType<any>>): Array<Argument<any>>;
8 constructor(group: Group, parameterType: ParameterType<T>);
9 /**
10 * Get the value returned by the parameter type's transformer function.
11 *
12 * @param thisObj the object in which the transformer function is applied.
13 */
14 getValue(thisObj: any): T;
15}