Skip to content

Fix: Add missing StateExt generic to StoreCreator second overload#4864

Merged
timdorr merged 1 commit into
reduxjs:masterfrom
Olexandr88:patch-1
Apr 23, 2026
Merged

Fix: Add missing StateExt generic to StoreCreator second overload#4864
timdorr merged 1 commit into
reduxjs:masterfrom
Olexandr88:patch-1

Conversation

@Olexandr88
Copy link
Copy Markdown
Contributor

@Olexandr88 Olexandr88 commented Apr 21, 2026

The enhancer parameter in the second overload of StoreCreator was typed as StoreEnhancer<Ext>, omitting StateExt. This caused TypeScript to never infer StateExt from the enhancer, always falling back to {}, despite it being declared in the overload's generics and used in the return type.

@codesandbox-ci
Copy link
Copy Markdown

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 aryaemami59 changed the title Fix: Add missing StateExt generic to StoreCreator second overload Fix: Add missing StateExt generic to StoreCreator second overload Apr 22, 2026
@aryaemami59 aryaemami59 added the TypeScript Issues related to TypeScript. label Apr 22, 2026
@timdorr
Copy link
Copy Markdown
Member

timdorr commented Apr 23, 2026

Thanks!

@timdorr timdorr merged commit 1afbd4a into reduxjs:master Apr 23, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TypeScript Issues related to TypeScript.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants