Skip to content

vue-i18n / general / DefineNumberFormat

Interface: DefineNumberFormat ​

The type definition of number format

Remarks ​

The typealias is used to strictly define the type of the Number format.

The type defined by this can be used in the global scope.

Example ​

ts
// type.d.ts (`.d.ts` file at your app)
import { DefineNumberFormat } from 'vue-i18n'

declare module 'vue-i18n' {
  export interface DefineNumberFormat {
    currency: {
      style: 'currency'
      currencyDisplay: 'symbol'
      currency: string
    }
  }
}

Vue I18n General ​

Extends ​

Indexable ​

ts
[key: string]: NumberFormatOptions

Released under the MIT License.