Skip to content

vue-i18n / general / DefineDateTimeFormat

Interface: DefineDateTimeFormat

Vue I18n General

The type definition of datetime format

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.

Example

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
    }
  }
}

Extends

Indexable

ts
[key: string]: DateTimeFormatOptions

Released under the MIT License.