Skip to content
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

TypeScript: Add puttable action variant for PutEffectApi #357

Merged
merged 1 commit into from
Aug 25, 2020
Merged

TypeScript: Add puttable action variant for PutEffectApi #357

merged 1 commit into from
Aug 25, 2020

Conversation

bbil
Copy link
Contributor

@bbil bbil commented Aug 24, 2020

Fixes: #252

@bbil bbil changed the title Add puttable action variant for PutEffectApi TypeScript: Add puttable action variant for PutEffectApi Aug 24, 2020
@bbil
Copy link
Contributor Author

bbil commented Aug 24, 2020

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.

@jp928 jp928 merged commit 428594d into jfairbank:master Aug 25, 2020
@bbil bbil deleted the put-effect-channel branch August 25, 2020 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError with put effect when use channel
2 participants