Skip to content

Commit

Permalink
make combine types truer
Browse files Browse the repository at this point in the history
  • Loading branch information
devanshj committed Nov 20, 2021
1 parent 4feaebf commit 9697e01
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/middleware/combine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ type Combine =
<T extends UnknownState, U extends UnknownState>
( initialState: T
, additionalStateCreator:
( set: Store<T>['setState']
( set: Store<O.Overwrite<T, U>>['setState']
, get: Store<O.Overwrite<T, U>>['getState']
, store:
O.Overwrite<
Store<O.Overwrite<T, U>>,
{ setState: Store<T>['setState'] }
>
, store: Store<O.Overwrite<T, U>>
) => U
) =>
StoreInitializer<O.Overwrite<T, U>, Store<O.Overwrite<T, U>>>
Expand Down

0 comments on commit 9697e01

Please sign in to comment.