-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
improve tsx
support
#1168
improve tsx
support
#1168
Conversation
} | ||
|
||
declare global { | ||
namespace JSX { |
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.
IMO, JSX declaration should be included in core lib’s declaration.
I remember @blake-newman was working on that?
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.
You are right, but it's not available right now.
Maybe we could use this until core lib's declaration released
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.
I am currently using this as a stop gap: https://github.com/wonderful-panda/vue-tsx-support (Some of the typing is wrong)
May be worth bringing some of this in, i think with some planning we should be able to get it all via types with no need for an API.
@@ -3,7 +3,8 @@ | |||
"target": "<%- options.useTsWithBabel ? 'esnext' : 'es5' %>", | |||
"module": "esnext", | |||
"strict": true, | |||
"jsx": "preserve", | |||
"jsx": "preserve", | |||
"jsxFactory": "h", |
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.
Why do we need this? AFAIK, it only affects when jsx
is set to react
.
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.
I'll remove it
No description provided.