Address PR

This commit is contained in:
Yui T 2017-05-12 11:54:23 -07:00
parent 8d09085800
commit 8907c70a86

View File

@ -13549,17 +13549,17 @@ namespace ts {
}
function getApparentTypeOfJsxPropsType(propsType: Type): Type {
if (propsType) {
if (propsType.flags & TypeFlags.Intersection) {
const propsApprentType: Type[] = [];
for (const t of (<UnionOrIntersectionType>propsType).types) {
propsApprentType.push(getApparentType(t));
}
return getIntersectionType(propsApprentType);
}
return getApparentType(propsType);
if (!propsType) {
return undefined;
}
return propsType;
if (propsType.flags & TypeFlags.Intersection) {
const propsApparentType: Type[] = [];
for (const t of (<UnionOrIntersectionType>propsType).types) {
propsApparentType.push(getApparentType(t));
}
return getIntersectionType(propsApparentType);
}
return getApparentType(propsType);
}
/**