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
declare function isString(x: mixed): boolean %checks;
declare function isStr(x: mixed): boolean %checks(typeof x === "string");
declare function plain(x: mixed): boolean;
function checksInline(x: mixed): boolean %checks {
  return typeof x === "string";
}