Mirror: 🎩 A tiny but capable push & pull stream library for TypeScript and Flow

Fix genType map operator types

Changed files
+4 -1
src
+4 -1
src/wonka_operators.re
···
curry(sink =>
source((. signal) =>
sink(.
+
/* The signal needs to be recreated for genType to generate
+
the correct generics during codegen */
switch (signal) {
+
| Start(x) => Start(x)
| Push(x) => Push(f(. x))
-
| _ => signal
+
| End => End
},
)
)