-
Notifications
You must be signed in to change notification settings - Fork 206
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
Typings error #342
Comments
Hi @rwpino, would you be so kind to relay which version of TypeScript are you using? |
Hi @TylorS . I'm using the version 1.8.10 |
As a more correct solution to your first issue, I believe TypeScript 1.8 also has the option, but I know TypeScript 2.x does have it. If I'm incorrect let me know we can figure out something else :) // tsconfig.json
{
"compilerOptions": {
"lib": [
"dom" // will add Types for the DOM
]
}
} As for the second issue you're having, the current type recoverWith<B>(p: (a: B) => Stream<A>): Stream<A>; is correct as it corresponds to the current implementation of the function |
I ran into this as well, because I can't use |
Consider adding:
to React does something like this as well, see: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/global.d.ts |
I get this typescript error
as a temporary fix I changed it for the following
Another issue I have is with type definition for recoverWith
this is forcing me to write
I guess the correct one would be
The text was updated successfully, but these errors were encountered: