Experimental successor to rescript-webapi
Install the package using your favorite package manager:
npm i -D @rescript/webapi@experimental
and add @rescript/webapi
to your rescript.json
:
{
"bs-dependencies": [
+ "@rescript/webapi",
],
"bsc-flags": [
+ "-open WebAPI.Global"
]
}
More information can be found on https://rescript-lang.github.io/experimental-rescript-webapi/