Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
✅ Deploy Preview for redux-starter-kit-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
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. Latest deployment of this branch, based on commit 701b9ef:
|
size-limit report 📦
|
|
redux-toolkit/packages/toolkit/src/tests/configureStore.test-d.ts Lines 277 to 278 in a152b9e - const counterReducer1: Reducer<number> = () => 0
- const counterReducer2: Reducer<number> = () => 0
+ const counterReducer1 = () => 0
+ const counterReducer2 = () => 0This change seems to fix the issue related to TS 5.5. |
that seems... bad? |
Yeah I'm not really sure why tbh, this also fixes it: redux-toolkit/packages/toolkit/src/tests/configureStore.test-d.ts Lines 277 to 278 in a152b9e - const counterReducer1: Reducer<number> = () => 0
- const counterReducer2: Reducer<number> = () => 0
+ const counterReducer1: Reducer<number, UnknownAction> = () => 0
+ const counterReducer2: Reducer<number, UnknownAction> = () => 0 |
|
that makes no sense, UnknownAction is the default for that type parameter anyway 🤔 wtf typescript? 😅 |
Edit: My previous hunch is not correct, You're right. It has something to do with |
|
@aryaemami59 are you able to recreate it in the TS Playground? weirdly i can't seem to reproduce it there: https://tsplay.dev/N7kyEN |
|
TS playground repro: link, the change bisects to microsoft/TypeScript#57837 |
|
Actual minimal repro: TS playground Consider me nerd-sniped. I will be digging into it more tomorrow. |
|
This looks very interesting. |
|
Where do we stand on this one? |
|
I think this is now a dupe of #4567 . |
No description provided.