Skip to content

Conversation

@ahejlsberg
Copy link
Member

This PR fixes the strange error elaboration behavior seen in #44797. The PR does not introduce validation of attributes with hyphenated names in the presence of index signatures, and attributes with hyphenated names are still ignored in excess property checking.


function isUnhyphenatedJsxName(name: string | __String) {
return !stringContains(name as string, "-");
function isHyphenatedJsxName(name: string | __String) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@DanielRosenwasser
Copy link
Member

You'll need to accept baselines.


declare function Yadda(props: Props): JSX.Element;
~~~
!!! error TS2503: Cannot find namespace 'JSX'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be React.JSX.Element?

@ahejlsberg ahejlsberg merged commit 8e01a86 into main Jul 6, 2021
@ahejlsberg ahejlsberg deleted the fix44797 branch July 6, 2021 20:29
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants