-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unknown type issue from Beta 4 #135
Comments
Yeah, I suspected there would be problems like this. I'll be working on that next. |
After playing with it a bit more, I'm seeing my IDE (WebStorm) getting confused about types a lot. It was showing correctly for one operator, then suddenly stopped :) I don't know what to make of it :) |
@RebeccaStevens Just re-tested it against v2.0.0-beta.6 Looks like types for |
Isn't that expected as This should work though: const data = [[1, 2, 3]];
const i = pipe(data, spread()); |
Yes, you are right. What actually confused me is that in v1.6.4 it would complain about incorrect input: But with v2.0.0-beta.6 it does not complain anymore, which isn't ideal, makes you think that your use of operator is correct, even though it is not. I mean, it confused me, it will surely confuse other developers. |
That's odd. I can see that error inside the library tests also, but not inside clients. Tried to clean up the cache - didn't help. Latest TypeScript, latest WebStorm, errors for v1.6.4, not for v2.0.0-beta.6 Any idea? :) |
@RebeccaStevens If you are certain that there is no issue there, then feel free to close this issue ;) |
@RebeccaStevens
After PR #132, it seems, we start getting
unknown
type resolved...See 2.0.0.0-beta 4 version published.
UPDATE
Actually, after some time, my IDE started showing
spread
with correct type, but notflat
:The text was updated successfully, but these errors were encountered: