mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 11:24:29 -05:00
Update error message to use variable name for "children"
This commit is contained in:
@@ -13322,7 +13322,7 @@ namespace ts {
|
||||
const jsxChildrenPropertyName = getJsxElementChildrenPropertyname();
|
||||
if (jsxChildrenPropertyName) {
|
||||
if (attributesTable.has(jsxChildrenPropertyName)) {
|
||||
error(attributes, Diagnostics.props_children_are_specified_twice_The_attribute_named_children_will_be_overwritten);
|
||||
error(attributes, Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, jsxChildrenPropertyName);
|
||||
}
|
||||
|
||||
// If there are children in the body of JSX element, create dummy attribute "children" with anyType so that it will pass the attribute checking process
|
||||
|
||||
@@ -2099,7 +2099,7 @@
|
||||
"category": "Error",
|
||||
"code": 2707
|
||||
},
|
||||
"props.children are specified twice. The attribute named 'children' will be overwritten.": {
|
||||
"'{0}' are specified twice. The attribute named '{0}' will be overwritten.": {
|
||||
"category": "Error",
|
||||
"code": 2708
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user