We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dca368b commit 994ddacCopy full SHA for 994ddac
1 file changed
src/compiler/checker.ts
@@ -12754,11 +12754,6 @@ namespace ts {
12754
// Props is of type 'any' or unknown
12755
return attributesType;
12756
}
12757
- else if (attributesType.flags & TypeFlags.Union) {
12758
- // Props cannot be a union type
12759
- error(openingLikeElement.tagName, Diagnostics.JSX_element_attributes_type_0_may_not_be_a_union_type, typeToString(attributesType));
12760
- return anyType;
12761
- }
12762
else {
12763
// Normal case -- add in IntrinsicClassElements<T> and IntrinsicElements
12764
let apparentAttributesType = attributesType;
0 commit comments