Skip to content

Commit

Permalink
fix: typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Dec 7, 2024
1 parent 5584a83 commit 11447b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/store/src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type Op = [op: "set", path: Path, value: unknown, prevValue: unknown] | [op: "de

type Listener = (op: Op, nextVersion: number) => void

export type Snapshot<T> = T extends { $$valtioSnapshot: infer S } ? S : T & { $$valtioSnapshot?: true }
export type Snapshot<T> = T

type CreateSnapshot = <T extends object>(target: T, version: number) => T

Expand Down

0 comments on commit 11447b0

Please sign in to comment.