Interface: DefineNumberFormat
The type definition of number format
Extends
Signature
ts
export interface DefineNumberFormat extends NumberFormatExamples
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
}
}
}Tags
@VueI18nGeneral@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.