vue-i18n / general / DefineDateTimeFormat
インターフェース: DefineDateTimeFormat
日時フォーマットの型定義
備考
typealiasは、日時フォーマットの型を厳格に定義するために使用されます。
こので定義された型はグローバルスコープで使用できます。
例
ts
// type.d.ts (アプリ内の`.d.ts`ファイル)
import { DefineDateTimeFormat } from 'vue-i18n'
declare module 'vue-i18n' {
export interface DefineDateTimeFormat {
short: {
hour: 'numeric'
timezone: string
}
}
}Vue I18n General
継承
インデックス可能
ts
[key: string]: DateTimeFormatOptions