fix(tsc-wrapped): ignore |null and |undefined when collecting types (#16222)

This commit is contained in:
Chuck Jazdzewski
2017-04-20 17:34:44 -07:00
parent 27761b4500
commit 1651a8f189
3 changed files with 54 additions and 1 deletions

View File

@ -191,7 +191,6 @@ export class StaticReflector implements CompileReflector {
if (paramType) nestedResult.push(paramType);
const decorators = parameterDecorators ? parameterDecorators[index] : null;
if (decorators) {
if (paramType) nestedResult.push(paramType);
nestedResult.push(...decorators);
}
parameters !.push(nestedResult);