-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReducerWithInitialState is not portlable according to TS #4108
Comments
i have reducer like: export const reducer = createReducer({/* ... */}, () => {/* ... */}) |
It's a known issue when declaration=true with ES modules |
aryaemami59
added a commit
to aryaemami59/redux-toolkit
that referenced
this issue
Jun 8, 2024
- This should serve as a partial fix for reduxjs#3962, reduxjs#4448, reduxjs#3983, reduxjs#4066, reduxjs#4108, reduxjs#4401 - Here is the list of the problematic (now exported) types: From `@reduxjs/toolkit`: - `CombinedSliceReducer` - `CaseReducerDefinition` - `Id` renamed to `TSHelpersId` - `UncheckedIndexedAccess` - `ReducerWithInitialState` - `CaseReducerDefinition` - `Id` renamed to `TSHelpersId` - `UncheckedIndexedAccess` - `ReducerWithInitialState` From `@reduxjs/toolkit/query/react`: - `UseLazyQuery` - `UseQuery` - `QueryHooks`
8 tasks
Can you run this command and try again to see if it fixes the issue: npm install https://pkg.csb.dev/reduxjs/redux-toolkit/commit/06a30ee4/@reduxjs/toolkit |
@markerikson thanks a lot, (looks like release title is 2.2.6 for tag 2.2.7) |
@krutoo fixed, thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, in my project i use toolkit 2.0.0 and i have type check build during emit declaration files only with
isolatedModules: true
option in tsconfig:i have error:
Can we add export of ReducerWithInitialState from entry point of package?
The text was updated successfully, but these errors were encountered: