Skip to content

Commit

Permalink
fix: Fix typescript error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwalton committed Aug 11, 2022
1 parent 77abf35 commit d8214bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class ImmutableModelStore<S> {
throw new Error('Updates must be synchronous');
}

const newState = finishDraft(draft) as Immutable<S>;
const newState = finishDraft(draft) as unknown as Immutable<S>;

this._isUpdating = undefined;
if (newState !== this.current) {
Expand Down

0 comments on commit d8214bc

Please sign in to comment.