Closed idkjs closed 6 years ago
ReasonablyTyped is not meant to compile JS into Reason.
Specifically it converts type definitions for Flow and TypeScript into BuckleScript bindings.
The TS conversion on the latest npm release isn't great, and is totally removed in master. Watch out for the next release for better TS conversion.
Basically, I dont know what I'm missing in the docs so I will provide examples below.
Lets say I want to use retyped to create type for a react-apollo Query
Trying retyped on the above, i get:
Trying on Query.js i get:
PrisBook:~$ retyped --version 0.13.0 PrisBook:~$ bsc -version BuckleScript 2.2.3 (Using OCaml4.02.3+BS ) PrisBook:~$
Thank you.