json-diff-ts icon indicating copy to clipboard operation
json-diff-ts copied to clipboard

Examples do not compile

Open hffmnn opened this issue 1 year ago • 1 comments

Copy & pasting the example given here: https://github.com/ltwlf/json-diff-ts?tab=readme-ov-file#examples-using-star-wars-data gives the following TS Error: Object literal may only specify known properties, and 'characters' does not exist in type 'Options'.ts(2353)

Technicals

  • "typescript": "5.5.3"
  • "json-diff-ts": "4.0.1"

hffmnn avatar Jul 26 '24 06:07 hffmnn

I ran into this too and it took a second to spot the problem. The main example is missing the embeddedObjKeys

{ embeddedObjKeys: { 'characters': 'id' }}

austinthedeveloper avatar Sep 25 '24 15:09 austinthedeveloper