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.
1 parent 3e913f5 commit 5acb4fdCopy full SHA for 5acb4fd
src/index.ts
@@ -17,4 +17,5 @@ export type {
17
Patch,
18
ExternalOptions as Options,
19
PatchesOptions,
20
+ DraftedObject,
21
} from './interface';
src/interface.ts
@@ -183,7 +183,7 @@ export type Immutable<T> = T extends Primitive | AtomicObject
183
184
type DraftedMap<K, V> = Map<K, Draft<V>>;
185
type DraftedSet<T> = Set<Draft<T>>;
186
-type DraftedObject<T> = {
+export type DraftedObject<T> = {
187
-readonly [K in keyof T]: Draft<T[K]>;
188
};
189
0 commit comments