File tree 1 file changed +9
-9
lines changed 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -13468,17 +13468,17 @@ namespace ts {
13468
13468
}
13469
13469
13470
13470
function getApparentTypeOfJsxPropsType(propsType: Type): Type {
13471
- if (propsType) {
13472
- if (propsType.flags & TypeFlags.Intersection) {
13473
- const propsApprentType: Type[] = [];
13474
- for (const t of (<UnionOrIntersectionType>propsType).types ) {
13475
- propsApprentType.push(getApparentType(t)) ;
13476
- }
13477
- return getIntersectionType(propsApprentType );
13471
+ if (! propsType) {
13472
+ return undefined;
13473
+ }
13474
+ if (propsType.flags & TypeFlags.Intersection ) {
13475
+ const propsApparentType: Type[] = [] ;
13476
+ for (const t of (<UnionOrIntersectionType>propsType).types) {
13477
+ propsApparentType.push(getApparentType(t) );
13478
13478
}
13479
- return getApparentType(propsType );
13479
+ return getIntersectionType(propsApparentType );
13480
13480
}
13481
- return propsType;
13481
+ return getApparentType( propsType) ;
13482
13482
}
13483
13483
13484
13484
/**
You can’t perform that action at this time.
0 commit comments