politie / sherlock

A reactive programming library for JavaScript applications, built with TypeScript.
Apache License 2.0
39 stars 12 forks source link

Remove extension hook that facilitates prototype polution #110

Closed pavadeli closed 6 years ago

pavadeli commented 6 years ago

We used to enhance Derivable.prototype with a toObservable method in a separate library. To enable that pattern we had special hooks for TypeScript to add the correct typing-info to the Derivable.prototype. This is a pattern that we don't want to support anymore, so we should remove this hook in extension.ts.