Skip to content

Commit 5acb4fd

Browse files
authored
fix(type): export DraftedObject (#137)
1 parent 3e913f5 commit 5acb4fd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ export type {
1717
Patch,
1818
ExternalOptions as Options,
1919
PatchesOptions,
20+
DraftedObject,
2021
} from './interface';

src/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export type Immutable<T> = T extends Primitive | AtomicObject
183183

184184
type DraftedMap<K, V> = Map<K, Draft<V>>;
185185
type DraftedSet<T> = Set<Draft<T>>;
186-
type DraftedObject<T> = {
186+
export type DraftedObject<T> = {
187187
-readonly [K in keyof T]: Draft<T[K]>;
188188
};
189189

0 commit comments

Comments
 (0)