Experimental successor to rescript-webapi
Install the package using your favorite package manager:
npm i @rescript/webapi@experimentaland 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/