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

Promise Union - This expression is not callable. #209

Open
stanislav215 opened this issue Sep 5, 2024 · 1 comment
Open

Promise Union - This expression is not callable. #209

stanislav215 opened this issue Sep 5, 2024 · 1 comment

Comments

@stanislav215
Copy link

stanislav215 commented Sep 5, 2024

Hello,

From version 0.6.0 I am getting errors on function that returns union of promises.

This expression is not callable.
Each member of the union type '{ <TResult1 = number, TResult2 = never>(onfulfilled?: ((value: number) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<...>) | null | undefined): Promise<...>; <TResult1 = number, TResult2 = never>(onfulfilled?: ((value: number) => TResult1 | PromiseLike...' has signatures, but none of those signatures are compatible with each other.typescript(2349)

probably related to: ts-reset/dist/promise-catch.d.ts

here is url, where issue is recreated:
https://codesandbox.io/p/sandbox/4lnj2q

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

No branches or pull requests

2 participants