Skip to content

Commit 082da44

Browse files
authored
add information about flow typed files (#219)
1 parent 49e82b1 commit 082da44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ require('tree-sitter-typescript').typescript; // TypeScript grammar
1313
require('tree-sitter-typescript').tsx; // TSX grammar
1414
```
1515

16+
For Javascript files with [flow] type annotations you can use the the `tsx` parser.
17+
1618
[tree-sitter]: https://github.com/tree-sitter/tree-sitter
19+
[flow]: https://flow.org/en/
1720

1821
References
1922

0 commit comments

Comments
 (0)