mobily/ts-belt

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

Opened this issue · 0 comments

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

export declare function isOk<A, B>(
promise: AsyncResult<A, B>,
): promise is Promise<Ok<A>>
export declare function isError<A, B>(
promise: AsyncResult<A, B>,
): promise is Promise<Error<B>>

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