tp / tsaga

Typesafe and lightweight way to write Redux-connected functions with asynchronous side-effects that are easily testable.
Apache License 2.0
8 stars 1 forks source link

Add util types #20

Closed HenriBeck closed 5 years ago

HenriBeck commented 5 years ago

This creates a separate SagaEnvironment interface which then can be implemented by the actual environment and the test environment.

I additionally fixed some type errors.

tp commented 5 years ago

Having a proper interface that doesn't change with the implementation details is nice :)

I want to give an effects pattern one more try, then we can merge this with the final interface.

HenriBeck commented 5 years ago

Sounds good 👍

tp commented 5 years ago

Let's discuss today how we can integrate this. A proper interface will be awesome, and also having the inline docs will be wonderful :)

tp commented 5 years ago

Thanks so much for this 👏

HenriBeck commented 5 years ago

👍 I will probably work tomorrow on a few TODOs which are still in the code