Skip to content
Myr

chore: processed review comment from #348

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Michel Weststrate · committed by Alec Larson · parent 980474a · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/immer.d.ts+1 added-1 removed
21 unmodified lines
22export type Draft<T> = T extends AtomicObject23 ? T24 : T extends object25 ? {-readonly [K in keyof T]: Draft<T[K]>}26 : T // mostly: unknown & any26 : T2728/** Convert a mutable type into a readonly type */29export type Immutable<T> = T extends AtomicObject30 ? T
219 unmodified lines