motorcycle.ts
motorcycle.ts copied to clipboard
Add return type for run
run
is missing a return type: https://github.com/motorcyclets/motorcycle/blob/c58d6fdff986fe709c07022d6036a2f1ccb5b2da/packages/run/src/run.ts#L45
It returns { sinks, sources, dispose }
. It should have a type, so it’s possible to talk about it’s type signature.
I'm thinking the name IODisposable<Sources, Sinks>
would be great for this. What do you think?
Yes. I’m sold!