From 7e9fe1332d2f4bf9d8b03e0dc4a76d5b1d755e77 Mon Sep 17 00:00:00 2001 From: Joachim Wester <1219049+Starcounter-Jack@users.noreply.github.com> Date: Thu, 24 Mar 2022 19:07:28 +0100 Subject: [PATCH] Typescript provided --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c545476..9acccaa 100644 --- a/README.md +++ b/README.md @@ -246,7 +246,7 @@ var patch = jsonpatch.generate(observer, true); ``` #### `jsonpatch.unobserve(document, observer)` -``` +```typescript jsonpatch.unobserve(document: any, observer: Observer): void type JsonableObj = { [key:string]: Jsonable }; @@ -260,7 +260,7 @@ Any remaining changes are delivered synchronously (as in `jsonpatch.generate`). #### `jsonpatch.compare(document1, document2, invertible)` -``` +```typescript jsonpatch.compare(document1: Jsonable, document2: Jsonable, invertible = false): Operation[] type JsonableObj = { [key:string]: Jsonable };