reduxjs / redux

A JS library for predictable global state management
https://redux.js.org
MIT License
60.93k stars 15.27k forks source link

add TS 5.5 to test matrix #4717

Closed EskiMojo14 closed 3 months ago

codesandbox-ci[bot] commented 4 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

aryaemami59 commented 4 months ago

https://github.com/reduxjs/redux/blob/642a756c9af412708c993f34692af8e6737df5d3/src/createStore.ts#L86

- ): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext
+ ): Store<S, A, UnknownIfNonSpecific<StateExt>> & [Ext][Ext extends any ? 0 : never]

This change seems to fix the issue related to TS 5.5.

EskiMojo14 commented 4 months ago

https://github.com/reduxjs/redux/blob/642a756c9af412708c993f34692af8e6737df5d3/src/createStore.ts#L86

- ): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext
+ ): Store<S, A, UnknownIfNonSpecific<StateExt>> & [Ext][Ext extends any ? 0 : never]

This change seems to fix the issue related to TS 5.5.

very odd, but added, thanks!