-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
types: quantileSeq expands types unnecessarily #3197
Copy link
Copy link
Closed
Description
Describe the bug
The types for quantileSeq have an overly wide return type.
To Reproduce
// Type 'number | BigNumber | Unit | MathArray' is not assignable to type 'number'.
// Type 'BigNumber' is not assignable to type 'number'.ts(2322)
const value: number = math.quantileSeq([1, 2, 3], 0.90);I think value here should always be a number. This is the behaviour of for example math.mean and math.median.
Reactions are currently unavailable