Skip to content

ResolvedNumberFormatOptions is missing currencySign option #43958

Closed
@snowystinger

Description

@snowystinger

Bug Report

currencySign is missing from NumberFormatOptions

🔎 Search Terms

currencySign

🕗 Version & Regression Information

I can see it's missing in the types for es5, just as it was added to the options here #40709 I'll create a pull tomorrow hopefully

⏯ Playground Link

Updated Playground link with relevant code

💻 Code

let formatter = new Intl.NumberFormat('en-NZ', { style: 'currency', currency: 'NZD', currencySign: 'accounting' });
formatter.resolvedOptions().currencySign;

🙁 Actual behavior

I get a TS error Property 'currencySign' does not exist on type 'ResolvedNumberFormatOptions'.(2339)

🙂 Expected behavior

I shouldn't get a TS error

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions