Skip to content

Commit

Permalink
fix: add format object type to type file (#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
always-maap authored Jul 12, 2021
1 parent 08adda5 commit 5a79cc6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ declare namespace dayjs {

export type ConfigType = ConfigTypeMap[keyof ConfigTypeMap]

export type OptionType = { locale?: string, format?: string, utc?: boolean } | string | string[]
export interface FormatObject { locale?: string, format?: string, utc?: boolean }

export type OptionType = FormatObject | string | string[]

export type UnitTypeShort = 'd' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'

Expand Down

0 comments on commit 5a79cc6

Please sign in to comment.