From fa67f7d8cb168871b17a0550cc7b39d213506902 Mon Sep 17 00:00:00 2001 From: unadlib Date: Sat, 20 Sep 2025 01:04:55 +0800 Subject: [PATCH] fix(type): fix export DraftedObject --- src/index.ts | 1 + src/interface.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; };