Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AR.isOk and AR.isError not defined #94

Open
josh- opened this issue Dec 4, 2023 · 0 comments · May be fixed by #95
Open

AR.isOk and AR.isError not defined #94

josh- opened this issue Dec 4, 2023 · 0 comments · May be fixed by #95

Comments

@josh-
Copy link

josh- commented Dec 4, 2023

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
@josh- josh- linked a pull request Dec 4, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant