From 14ad1e81926ed860b379654d2f7076fd74072332 Mon Sep 17 00:00:00 2001 From: unadlib Date: Mon, 30 Jan 2023 19:35:15 +0800 Subject: [PATCH] fix(patch): fix Patch interface --- src/interface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface.ts b/src/interface.ts index 757512a1..879a6cc1 100644 --- a/src/interface.ts +++ b/src/interface.ts @@ -55,7 +55,7 @@ export interface ProxyDraft { callbacks?: ((patches?: Patches, inversePatches?: Patches) => void)[]; } -export type Patch

= { +export type Patch

= { op: typeof Operation[keyof typeof Operation]; path: P extends { pathAsArray: false } ? string : (string | number)[]; value?: any;