-
Notifications
You must be signed in to change notification settings - Fork 171
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
Question: How well does this work with TypeScript? #73
Comments
I kicked off a discussion with the TypeScript folks about this (and more generally about extending type checking into tagged templates). You might find the discussion interesting: |
FWIW, you can use TSX and get all the TypeScript benefits, tell TS to leave TSX in-tact via |
Okay thanks @developit. For now then it looks like this unfortunately isn't really viable for use with TypeScript and the conversation with the TypeScript folkes appears to have gone stale (no comments for a month). Cool project though and using the Babel plugin is a good idea if this provides some performance benefits, although I'm not sure I'd personally be willing to sacrifice a small performance improvement for a more complicated build since I don't think this would work with parcel (I might be wrong though). |
@ryansmith94 TypeScript will receive support for tagged templates. See microsoft/TypeScript#40336 . I believe you should be able to type |
TypeScript 4 took a step in the right direction, but it looks like it's still not quite possible: |
Hey, apologies to take your time on a question I could answer myself with a few minutes of trying it out (and I still might do that if I get a few minutes). It would be nice to just have a quick answer to this question somewhere in this project, maybe in the readme. I guess specifically I'd like to know the following.
The text was updated successfully, but these errors were encountered: