mobily / ts-belt

🔧 Fast, modern, and practical utility library for FP in TypeScript.
https://mobily.github.io/ts-belt
MIT License
1.08k stars 30 forks source link

`AR.isOk` and `AR.isError` not defined #94

Open josh- opened 8 months ago

josh- commented 8 months ago

It appears that the functions AR.isOk and AR.isError are defined in the typescript definitions here:

https://github.com/mobily/ts-belt/blob/c825d9709de1e5d15b1b362429e0cee56c96c516/src/AsyncResult/AsyncResult.ts#L59-L65

however they are not implemented in the underling Rescript.

this means that calling one of these functions results in the following:

TypeError: import_ts_belt.AR.isOk is not a function

and logging out these values:

console.log(AR.isOk);
console.log(AR.isError);

results in:

undefined
undefined