-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JsxTagNameExpression can only be Identifier | ThisExpression, not any PrimaryExpression #21555
Conversation
… PrimaryExpression
I mean, while you're at it, it seems like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine, but as @uniqueiniquity mentioned, if we're that concerned about strictness here then we would probably want to add a:
export type JsxTagNameExpression = Identifier | ThisExpression | JsxMemberExpression;
export interface JsxMemberExpression extends PropertyAccessExpression {
expression: JsxTagNameExpression;
}
I think we could just use |
@uniqueiniquity @rbuckton Please re-review |
909cc64
to
a441800
Compare
Thanks for your contribution. This PR has not been updated in a while and cannot be automatically merged at the time being. For housekeeping purposes we are closing stale PRs. If you'd still like to continue working on this PR, please leave a message and one of the maintainers can reopen it. |
@uniqueiniquity @rbuckton Please re-review |
Noticed this while looking at some jsx-using code -- we were typing this as
PrimaryExpression
but could be a lot more strict.