a structural diff that understands syntax 🟥🟩
 
 
 
 
 
Go to file
Hendrik van Antwerpen 37e3bf2676 Fix incorrect file changes being reported 2021-11-01 14:39:33 +07:00
.github Add a CI step that checks whether the generated files are up-to-date. 2021-10-27 17:00:30 +07:00
bindings Fix nested module structure after regenerating with 0.19 2021-03-08 11:19:21 +07:00
common Resolve more ternary ambiguities 2021-10-21 09:42:26 +07:00
examples Simplify parse-examples script 2019-12-09 16:25:28 +07:00
queries Add override modifier 2021-06-21 23:26:25 +07:00
script Fix incorrect file changes being reported 2021-11-01 14:39:33 +07:00
tsx Check in generated files 2021-10-21 10:06:54 +07:00
typescript Check in generated files 2021-10-21 10:06:54 +07:00
.gitattributes Update .gitattributes 2019-05-29 14:26:07 +07:00
.gitignore git-ignore files that would be generated by a direct call to 2021-09-14 18:11:35 +07:00
.npmignore Fix nested module structure after regenerating with 0.19 2021-03-08 11:19:21 +07:00
Cargo.toml Loosen Rust crate's tree-sitter dependency 2021-10-04 10:20:41 +07:00
LICENSE Fix license 2017-02-09 23:06:14 +07:00
README.md Fix link to TS spec 2021-08-01 16:52:51 +07:00
appveyor.yml Wire up example parsing to CI 2018-04-16 15:23:08 +07:00
binding.gyp Fix nested module structure after regenerating with 0.19 2021-03-08 11:19:21 +07:00
package.json Update to fdeb68a and resolve conflicts 2021-10-21 09:42:26 +07:00
yarn.lock Improve grammar for query writing (#187) 2021-10-07 09:10:11 +07:00

README.md

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

References