typeArgument of JsxOpeningLikeElement ignored while checking JsxAttributes #22874
Labels
Bug
A bug in TypeScript
Domain: JSX/TSX
Relates to the JSX parser and emitter
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 2.9.0-dev.20180328
Search Terms: jsx generic type arguments
Code
Expected behavior:
Error on the
prop
attribute, because number is not assignable to string.Actual behavior:
No error. Signature help incorrectly shows
function SFC<number>(props: Record<string, number>): string
Playground Link:
Related Issues:
#22873
The text was updated successfully, but these errors were encountered: