Skip to content

Commit db25138

Browse files
committed
fix(type): fix type issue
1 parent 06872a1 commit db25138

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ const travelImpl: Travel =
241241
travels.subscribe((state) => {
242242
const nextState = { ...state, ...actions } as T;
243243
// Merge state with actions and replace entirely
244-
store.setState(nextState, true);
244+
(store.setState as SetState<T>)(nextState, true);
245245
});
246246

247247
// Add getControls method to store

0 commit comments

Comments
 (0)