Skip to content

DennySun2100/tree-sitter-typescript

 
 

Repository files navigation

tree-sitter-typescript

Build Status Build status

TypeScript and TSX grammars for tree-sitter.

Because TSX and TypeScript are actually two different dialects, this module defines two grammars. Require them as follows:

require('tree-sitter-typescript').typescript; // TypeScript grammar
require('tree-sitter-typescript').tsx; // TSX grammar

For Javascript files with flow type annotations you can use the the tsx parser.

References

About

Extended TypeScript grammar for tree-sitter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.1%
  • C 14.5%
  • Rust 6.6%
  • Shell 4.3%
  • C++ 3.3%
  • Scheme 2.5%
  • Other 2.7%