darrylhodgins / typescript-memoize

A memoize decorator for Typescript
https://www.npmjs.com/package/typescript-memoize
135 stars 18 forks source link

Non-extensible object support #2

Open fedorl opened 7 years ago

fedorl commented 7 years ago

When object is not extensible this otherwise excellent decorator would not work.

This is not a corner case as all entities in frozen redux or @ngrx store are not extensible.

darrylhodgins commented 7 years ago

This is going to take an amount of digging that I don't have enough time to take on at the moment, but feel free to submit a pull request or some suggestions on how to do this.