tree-sitter-typescript
TypeScript icon, indicating that this package has built-in type declarations

0.21.1 • Public • Published

tree-sitter-typescript

CI discord matrix crates npm pypi

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 tsx parser.

References

/tree-sitter-typescript/

    Package Sidebar

    Install

    npm i tree-sitter-typescript

    Weekly Downloads

    11,099

    Version

    0.21.1

    License

    MIT

    Unpacked Size

    43.9 MB

    Total Files

    37

    Last publish

    Collaborators

    • amaanq
    • ahlinc
    • maxbrunsfeld
    • tclem
    • daviwil
    • queerviolet
    • rewinfrey
    • ben3eee
    • atom-team
    • darangi
    • patrickthomson