dphilipson / typescript-fsa-reducers

Fluent syntax for defining typesafe reducers on top of typescript-fsa.
MIT License
220 stars 16 forks source link

Make created reducers not depend on typescript-fsa #10

Closed dphilipson closed 7 years ago

dphilipson commented 7 years ago

This resolves a typing issue when a reducer is created in one module and consumed in another module. Since created reducers have types which include AnyAction, they cannot be exported from a module without also exporting types from typescript-fsa. The change redeclares AnyAction to avoid this.