File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1057,16 +1057,19 @@ namespace ts {
1057
1057
expression : Expression ;
1058
1058
}
1059
1059
1060
- // The reason we create this interface so that JSXAttributes and ObjectLiteralExpression interface can extend out of it.
1061
- // JSXAttributes differs from normal ObjectLiteralExpression in that JSXAttributes can only take JSXAttribute or JSXSpreadAttribute
1062
- // but not ShortHandPropertyAssignment, methodDeclaration or other ObjectLiteralElementLike acceptable by ObjectLiteralExpression.
1060
+ /**
1061
+ * This interface is a base interface for ObjectLiteralExpression and JSXAttributes to extend from. JSXAttributes is similar to
1062
+ * ObjectLiteralExpression in that it contains array of properties; however, JSXAttributes' properties can only be
1063
+ * JSXAttribute or JSXSpreadAttribute. ObjectLiteralExpression, on the other hand, can only have properties of type
1064
+ * ObjectLiteralElement (e.g. PropertyAssignment, ShorthandPropertyAssignment etc.)
1065
+ **/
1063
1066
export interface ObjectLiteralExpressionBase < T extends ObjectLiteralElementLike > extends PrimaryExpression , Declaration {
1064
1067
properties : NodeArray < T > ;
1065
1068
}
1066
1069
1067
1070
// An ObjectLiteralExpression is the declaration node for an anonymous symbol.
1068
1071
// @kind (SyntaxKind.ObjectLiteralExpression)
1069
- export interface ObjectLiteralExpression extends ObjectLiteralExpressionBase < ObjectLiteralElement > {
1072
+ export interface ObjectLiteralExpression extends ObjectLiteralExpressionBase < ObjectLiteralElement > {
1070
1073
/* @internal */
1071
1074
multiLine ?: boolean ;
1072
1075
}
You can’t perform that action at this time.
0 commit comments