Interface: DefineDateTimeFormat
The type definition of datetime format
Extends
DateTimeFormat
Signature
ts
export interface DefineDateTimeFormat extends DateTimeFormatExamples
ts
// type.d.ts (`.d.ts` file at your app)
import { DefineDateTimeFormat } from 'vue-i18n'
declare module 'vue-i18n' {
export interface DefineDateTimeFormat {
short: {
hour: 'numeric'
timezone: string
}
}
}Tags
@VueI18nGeneral@remarks— The typealias is used to strictly define the type of the Datetime format. The type defined by this can be used in the global scope.