Palindrom / JSONPatcherProxy

ES6 proxy powered JSON Object observer that emits JSON patches when changes occur to your object tree.
94 stars 14 forks source link

TypeScript Class Generics #31

Closed jonahbron closed 5 years ago

jonahbron commented 5 years ago

This change adds a generic type to the proxy class. This ensures type safety between the root object and the proxy object.

jonahbron commented 5 years ago

@alshakero Any thoughts on this one? I realize this one is more of a feature than a bug fix, and would be lightly backwards-incompatible, so understand if you don't want to approve. But it does make sense to me to bind the types of the root and the proxy.