I just tried to start the disco-node server after upgrading to the last commit of irony, encountering the following error:
[...]/irony/build/lib/system/router/decorators/decorators.js:102
processDecoratedParameter(target, propertyKey, parameterIndex, enums_1.ParamType.body, name);
^
ReferenceError: name is not defined
at [...]/irony/build/lib/system/router/decorators/decorators.js:102:96
This seems logical to me, reviewing this snippet from the decorators.ts:
export function BodyParam() {
return function (target: Object, propertyKey: string, parameterIndex: number) {
processDecoratedParameter(target, propertyKey, parameterIndex, ParamType.body, name);
};
}
In contrast to the other *Param decorators, BodyParam does not expect the "name" parameter but is passing one to processDecoratedParameter. TypeScript does not fail because the name property was defined in some DOM specific typing file...
I just tried to start the disco-node server after upgrading to the last commit of irony, encountering the following error:
This seems logical to me, reviewing this snippet from the decorators.ts:
In contrast to the other *Param decorators, BodyParam does not expect the "name" parameter but is passing one to
processDecoratedParameter
. TypeScript does not fail because thename
property was defined in some DOM specific typing file...Should we simply add a
name
parameter?