diff --git a/src/index.ts b/src/index.ts index e20d278a..0223180f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,4 +17,5 @@ export type { Patch, ExternalOptions as Options, PatchesOptions, + DraftedObject, } from './interface'; diff --git a/src/interface.ts b/src/interface.ts index 5ea98feb..b0eaa7e1 100644 --- a/src/interface.ts +++ b/src/interface.ts @@ -183,7 +183,7 @@ export type Immutable = T extends Primitive | AtomicObject type DraftedMap = Map>; type DraftedSet = Set>; -type DraftedObject = { +export type DraftedObject = { -readonly [K in keyof T]: Draft; };