benjamine / jsondiffpatch

Diff & patch JavaScript objects
MIT License
4.83k stars 472 forks source link

Any TypeScript examples available? #304

Open Tagman opened 3 years ago

Tagman commented 3 years ago

Is there a place where I can find any usages with typescript for this library? Like just the basic import and diffing.

Thanks!

xamgore commented 3 years ago

Typescript definitions can be found in index.d.ts, so you just import { diff } from 'jsondiffpatch' as in pure javascript examples.