Skip to content

vue-i18n / general / DefineNumberFormat

Interfaz: DefineNumberFormat ​

La definición de tipo del formato numérico

Comentarios ​

El typealias se usa para definir estrictamente el tipo del formato numérico.

El tipo definido por esto puede ser utilizado en el ámbito global.

Ejemplo ​

ts
// type.d.ts (archivo `.d.ts` en tu aplicación)
import { DefineNumberFormat } from 'vue-i18n'

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

Vue I18n General ​

Extiende ​

Indexable ​

ts
[key: string]: NumberFormatOptions