Package Exports
- tree-sitter-typescript
- tree-sitter-typescript/bindings/node/index.js
- tree-sitter-typescript/bindings/node/tsx.js
- tree-sitter-typescript/bindings/node/typescript.js
- tree-sitter-typescript/tsx
- tree-sitter-typescript/typescript
- tree-sitter-typescript/typescript/grammar
- tree-sitter-typescript/typescript/grammar.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tree-sitter-typescript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
tree-sitter-typescript
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 grammarFor Javascript files with flow type annotations you can use the tsx parser.
References