TypeScript: Support type arguments on JSX opening and self-closing tags (#7799)

This commit is contained in:
Andy
2018-07-10 15:19:42 -07:00
committed by Brian Ng
parent 19a1705293
commit 301db1b921
17 changed files with 356 additions and 16 deletions

View File

@@ -142,6 +142,13 @@ defineType("JSXOpeningElement", {
assertEach(assertNodeType("JSXAttribute", "JSXSpreadAttribute")),
),
},
typeParameters: {
validate: assertNodeType(
"TypeParameterInstantiation",
"TSTypeParameterInstantiation",
),
optional: true,
},
},
});