Signature of ExponentiallyDecayingSample#update is reported as error by Typescript compiler. I also added typescript as dev dependency and "compilation" step to have a sanity check whether the type definition file compiles. (it would have caught this bug).
Excellent, thanks for adding the additional validation too, i didn't notice this until after i merged #50 which had a similar fix that i resolved conflicts for.
Signature of ExponentiallyDecayingSample#update is reported as error by Typescript compiler. I also added typescript as dev dependency and "compilation" step to have a sanity check whether the type definition file compiles. (it would have caught this bug).