Skip to content

ast-grep/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

TypeScript grammar for tree-sitter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 65.4%
  • C 14.8%
  • Rust 6.7%
  • Shell 4.4%
  • C++ 3.4%
  • Scheme 2.6%
  • Other 2.7%