Skip to content
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

Merged
merged 6 commits into from
Apr 27, 2018
Merged

improve tsx support #1168

merged 6 commits into from
Apr 27, 2018

Conversation

troy351
Copy link
Contributor

@troy351 troy351 commented Apr 24, 2018

No description provided.

@troy351 troy351 changed the title add tsx extension for tsconfig include improve tsx support Apr 24, 2018
}

declare global {
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.

IMO, JSX declaration should be included in core lib’s declaration.
I remember @blake-newman was working on that?

Copy link
Contributor Author

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

Copy link
Member

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",
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll remove it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants