Skip to content

Improve TypeScript definitions of createUnit #2607

@egziko

Description

@egziko

createUnit function can take as second parameter of type Unit but it's missing from type definition

createUnit

I'm using the example mentioned in the docs
https://mathjs.org/examples/browser/currency_conversion.html.html

if (obj && obj.type === 'Unit') {

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions