You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Spread object doesn't have freshness flag to allow excess attributes as it is very common for parent component to spread its "props" to other components in its render method.
// If sourceAttributesType has spread (e.g the type doesn't have freshness flag) after we check for assignability, we will do another pass to check that
13877
+
// all explicitly specified attributes have correct name corresponding with target (as those will be assignable as spread type allows excess properties)
13878
+
// Note: if the type of these explicitly specified attributes do not match it will be an error during above assignability check.
13879
+
if (sourceAttributesType !== anyType && !(sourceAttributesType.flags & TypeFlags.FreshLiteral)) {
13876
13880
for (const attribute of openingLikeElement.attributes.properties) {
13877
13881
if (isJsxAttribute(attribute) && !getPropertyOfType(targetAttributesType, attribute.name.text)) {
0 commit comments