You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use the diff function from just-diff with the jsonPatchPathConverter function provided there, and then use diffApply from just-diff-apply on the result with its jsonPathPathConverter, I receive a TypeError on path.
With this code, I receive the following error in TypeScript 5.0.4:
Type '{ op: Operation; path: string; value: any; }[]' is not assignable to type 'DiffOps'.
Type '{ op: Operation; path: string; value: any; }' is not assignable to type '{ op: Operation; path: (string | number)[]; value?: any; }'.
Types of property 'path' are incompatible.
Type 'string' is not assignable to type '(string | number)[]'.
The text was updated successfully, but these errors were encountered:
If I use the
diff
function fromjust-diff
with thejsonPatchPathConverter
function provided there, and then usediffApply
fromjust-diff-apply
on the result with itsjsonPathPathConverter
, I receive aTypeError
onpath
.Minimal example:
With this code, I receive the following error in TypeScript 5.0.4:
The text was updated successfully, but these errors were encountered: