Skip to content

Incorrect typings in Typescript  #2159

@DDeme

Description

@DDeme

I have difficulty to compile code.

Example:

import {floor} from 'mathjs' floor(n, 6)

TSError: ⨯ Unable to compile TypeScript:

"@types/mathjs": "^6.0.11",
"mathjs": "^9.3.0",

In docs function is described with two paramers.
https://mathjs.org/docs/reference/functions/floor.html

In types there is misstype
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/d21a57f090057ab87b7780b46a872c2387c6aa83/types/mathjs/index.d.ts#L662

What should I do to fix this issue ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions