in typescript definition of mathjs, there is hypot function definition
hypot<T extends (number | BigNumber)[]>(...args: T[]): T
in this definition T can't be number, T has to be number[], and this function would return number[], this result is not our expectation
so I think it actually means:
hypot<T extends (number | BigNumber)>(...args: T[]): T