Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Extend Math with custom prototypes in Ionic 2

$
0
0

@Domic wrote:

Hi,
I want to extend Math with new custom prototypes e.g. lerp and clamp.
For example Math.prototype.lerp = function(..) {..}.
But Ionic and typescript has to know this new methods. When typing in editor (vs code) these new methods must not be recognized as an error.

What's the best way to do this?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>