Support TypeScript
See original GitHub issueLike it says. I’m not sure how much of an effort this would be.
Known bugs/missing features
Old-style castingImplemented in beta.3(<Foo> bar)
. This conflicts with JSX, so I’ll have to make sure that this is configurable.- Type arguments in method calls. On the surface, this is ambiguous with ordinary JS syntax. I’ll have to look into exactly how TypeScript parses this. May require branching.
- Type arguments in template strings. Same concerns as above. May also require a special case for Styled Components.
- Better detection of arrow function argument lists. May require branching.
- Arrow function type parameters. Almost certainly require branching.
- Directives in comments. For this, I’ll need to figure out a general system for extending comments that works for other extensions as well.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:79 (38 by maintainers)
Top Results From Across the Web
TypeScript: JavaScript With Syntax For Types.
TypeScript adds additional syntax to JavaScript to support a tighter integration with your editor. Catch errors early in your editor.
Read more >TypeScript Programming with Visual Studio Code
VS Code comes with great debugging support for TypeScript, including support for sourcemaps. Set breakpoints, inspect objects, navigate the call stack, and ...
Read more >TypeScript | WebStorm Documentation - JetBrains
WebStorm supports developing, running, and debugging TypeScript source code. WebStorm recognizes .ts and .tsx files and provides full range ...
Read more >TypeScript support in Svelte - Learn web development
TypeScript support in Svelte · Code along with us · TypeScript: optional static typing for JavaScript · Why TypeScript? · Creating a Svelte ......
Read more >TypeScript Support - Docusaurus
Docusaurus is written in TypeScript and provides first-class TypeScript support. Initialization. Docusaurus supports writing and using TypeScript theme ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m closing this because the beta release should fix everything in the initial psot.
Fun fact: in order to support function call type arguments, Microsoft’s official TypeScript syntax uses the following regular expressions:
I was going to borrow Microsoft’s lookaheads as a temporary measure before reimplementing with branching, but upon reflection, I think not.