Skip to content

Commit

Permalink
Fix type issues related to TS 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Jul 9, 2024
1 parent 12fc090 commit 5e6797d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function createStore<
reducer: Reducer<S, A, PreloadedState>,
preloadedState?: PreloadedState | undefined,
enhancer?: StoreEnhancer<Ext, StateExt>
): Store<S, A, UnknownIfNonSpecific<StateExt>> & Ext
): Store<S, A, UnknownIfNonSpecific<StateExt>> & [Ext][Ext extends any ? 0 : never]
export function createStore<
S,
A extends Action,
Expand Down

0 comments on commit 5e6797d

Please sign in to comment.