hermes-parser 0.1.2

A Rust port of the Hermes JavaScript/Flow/TypeScript parser (front-end) by Tzvetan Mikov, the architect of Hermes. Not an official Meta project.
Documentation
1
2
3
4
5
6
7
8
type U = A | B | C;
type I = A & B & C;
type Mix = A & B | C & D;
type Arr = number[];
type Arr2 = number[][];
type Idx = Foo['bar'];
type Idx2 = Foo[number];
type ArrIdx = Foo[]['x'];