TypeScript: Support type arguments on JSX opening and self-closing tags (#7799)
This commit is contained in:
@@ -142,6 +142,13 @@ defineType("JSXOpeningElement", {
|
||||
assertEach(assertNodeType("JSXAttribute", "JSXSpreadAttribute")),
|
||||
),
|
||||
},
|
||||
typeParameters: {
|
||||
validate: assertNodeType(
|
||||
"TypeParameterInstantiation",
|
||||
"TSTypeParameterInstantiation",
|
||||
),
|
||||
optional: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user