Skip to content

Commit

Permalink
fix(patch): fix Patch interface
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Jan 30, 2023
1 parent 7b8c00c commit 14ad1e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface ProxyDraft<T = any> {
callbacks?: ((patches?: Patches, inversePatches?: Patches) => void)[];
}

export type Patch<P extends PatchesOptions> = {
export type Patch<P extends PatchesOptions = any> = {
op: typeof Operation[keyof typeof Operation];
path: P extends { pathAsArray: false } ? string : (string | number)[];
value?: any;
Expand Down

0 comments on commit 14ad1e8

Please sign in to comment.