jfairbank / redux-saga-test-plan

Test Redux Saga with an easy plan.
http://redux-saga-test-plan.jeremyfairbank.com
MIT License
1.25k stars 127 forks source link

TypeScript: Add puttable action variant for PutEffectApi #357

Closed bbil closed 4 years ago

bbil commented 4 years ago

Fixes: https://github.com/jfairbank/redux-saga-test-plan/issues/252

bbil commented 4 years ago

Here is the type definition for redux-saga paga (with channel):

export function put<T>(channel: PuttableChannel<T>, action: T | END): ChannelPutEffect<T>

Note that action here, is not necessarily a Redux action, it can be whatever you want.