Skip to content

hypot function typescript definition seems wrong #3125

@silentmissile

Description

@silentmissile

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions