Skip to content

[Proposal] More strictly-typed Intl bindings? #63

Closed
@illusionalsagacity

Description

@illusionalsagacity

I noticed these are currently typed as {..}, would it be welcome to PR some more completely typed ones rather than the open object type?

e.g for NumberFormat

type currencyDisplay = [#symbol | #narrowSymbol | #code | #name]
type currencySign = [#accounting | #standard]
type localeMatcher = [#lookup | @as("best fit") #bestFit]
type notation = [#scientific | #standard | #engineering | #compact]
type displayType = [#short | #long]
type signDisplay = [
  | #auto
  | #always
  | #exceptZero
  | #never
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalProposals for changes to Core.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions