File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -13549,17 +13549,17 @@ namespace ts {
13549
13549
}
13550
13550
13551
13551
function getApparentTypeOfJsxPropsType(propsType: Type): Type {
13552
- if (propsType) {
13553
- if (propsType.flags & TypeFlags.Intersection) {
13554
- const propsApprentType: Type[] = [];
13555
- for (const t of (<UnionOrIntersectionType>propsType).types ) {
13556
- propsApprentType.push(getApparentType(t)) ;
13557
- }
13558
- return getIntersectionType(propsApprentType );
13552
+ if (! propsType) {
13553
+ return undefined;
13554
+ }
13555
+ if (propsType.flags & TypeFlags.Intersection ) {
13556
+ const propsApparentType: Type[] = [] ;
13557
+ for (const t of (<UnionOrIntersectionType>propsType).types) {
13558
+ propsApparentType.push(getApparentType(t) );
13559
13559
}
13560
- return getApparentType(propsType );
13560
+ return getIntersectionType(propsApparentType );
13561
13561
}
13562
- return propsType;
13562
+ return getApparentType( propsType) ;
13563
13563
}
13564
13564
13565
13565
/**
You can’t perform that action at this time.
0 commit comments