I will eventually start this, since this caught my attention when I was trying to type generators etc. while helping out another saga newbie...
If anyone already has something working, it would be cool to see the solution :-)
Related Issue: yelouafi/redux-saga#358
Just an update, I finally could allocate some working time for this, so it will hopefully be done soon :-)
EDIT: Sorry for being slow... our product features seem to be more important to my PO than libdefs for typed javascript, haha
I am on it again and have some export problem:
// test-redux-saga.js
import createSagaMiddleware, { eventChannel } from 'redux-saga';
How do I have to write my declare module, so that I can return a function as default export and also return different entities as named exports?
declare module 'redux-saga' {
declare var eventChannel: Function;
declare var exports: Function;
}
This example will make flow think it is a CommonJS module... this is not ideal... is this even possible? I know @jeffmo wrote about the export mechanics here #188
@alexeygolev
I close this, since this is done since forever :-)
Most helpful comment
Just an update, I finally could allocate some working time for this, so it will hopefully be done soon :-)
EDIT: Sorry for being slow... our product features seem to be more important to my PO than libdefs for typed javascript, haha