Base class for formatting numbers using the Intl library with its NumberFormat feature. Subclasses will generally use its FormatNumber method, which needs to have Intl.NumberFormatOptions to determine how Intl.NumberFormat will work. Pass the options in the constructor or omit the options for default formatting.

Hierarchy (view full)

Constructors

Accessors

Methods

  • Evaluates the parameters to determine if its format() method should handle the value with those same parameters. It should always match the DataTypeLookupKey. It does not have to evaluate the cultureID, as there are implementations where the format() function handles eve

    Parameters

    • dataTypeLookupKey: string
    • cultureId: string

      Such as 'en-US' and 'en'

    Returns boolean

    Use its format() method when true. Do not use format() when false.

Generated using TypeDoc v0.25.12