angular-redux / ng-redux

Angular bindings for Redux
MIT License
1.16k stars 178 forks source link

improve types #201

Closed no-stack-dub-sack closed 5 years ago

no-stack-dub-sack commented 6 years ago

@AntJanus per #200 updates the types for connect to allow for a null first argument in the event that your component does not require a mapStateToThis function.

Also, makes various updates to the types, and adds type annotations (taken from redux) for an improved intellisense experience. Updates to the types themselves include:

Let me know what you think or if you'd like to see any changes to this.

closes #200

bensgroi commented 6 years ago

Great - being able to use generics with INgRedux.getState() would be really useful.

no-stack-dub-sack commented 6 years ago

@AntJanus :point_up: just a reminder on this PR. Any chance you can review?

no-stack-dub-sack commented 5 years ago

:+1: