Skip to content

string also allows as args in Intl.NumberFormat.format #61629

Closed as not planned
@hengistchan

Description

@hengistchan

⚙ Compilation target

ES2020

⚙ Library

Intl

Missing / Incorrect Definition

declare namespace Intl {
    interface NumberFormat {
        format(value: number | bigint): string;
    }
}

Sample Code

declare namespace Intl {
    interface NumberFormat {
        format(value: number | bigint | string): string;
    }
}

Documentation Link

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/format#parameters

Metadata

Metadata

Assignees

No one assigned

    Labels

    UnactionableThere isn't something we can do with this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions