mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 02:30:15 -06:00
Address PR
This commit is contained in:
parent
8d09085800
commit
8907c70a86
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user