-
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
transduce() is missing from the type definition #512
Comments
It looks like |
Thanks @jeffrose. transduce does indeed seem to be missing--sorry about that. Do you know if it's possible to write a type definition for a transducer that is agnostic of the particular transducer library? Any interest in sending a PR for it? I verified |
You're right about While I have experience with both individually, I only recently started working with transducers and TypeScript together. I've seen some rather robust definitions like in transducist... But I assume most could get away with something more simplistic like in ramda... These get used by ramda's As long as the library as followed the protocol, it should work. I have similar interfaces and types declared locally but I have not put them to the test yet. If I get something more battle-tested, I will look at doing a PR. |
No worries @jeffrose. Thanks for the links. I hope to take a look at them over the holiday. |
Summary
The
transduce()
method is missing from the type definition and is therefore invisible to TypeScript.Versions
Steps to reproduce
Code to reproduce
Doing...
import { transduce } from 'most';
... will result in the error...
[ts] Module '".../node_modules/most/type-definitions/most"' has no exported member 'transduce'.
Doing...
... will result in the error...
[ts] Property 'transduce' does not exist on type 'typeof ".../node_modules/most/type-definitions/most"'.
The text was updated successfully, but these errors were encountered: