We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50b01ad + d12632f commit 3994866Copy full SHA for 3994866
src/state.ts
@@ -14,7 +14,7 @@ type Proxy<T> = {
14
}
15
type Partial<T> = { [P in keyof T]?: Partial<T[P]> }
16
type Wrapped<T> = {
17
- [P in keyof T]: Proxy<T[P]>;
+ [P in keyof T]: T[P] extends object ? Proxy<T[P]> : T[P];
18
} & { _state: T }
19
type StateAtom = string | number | boolean | symbol | null | undefined | any[]
20
type StateSetter<T> = (
0 commit comments