Skip to content

Commit

Permalink
add format object type to index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
always-maap committed Jul 9, 2021
1 parent 08adda5 commit 343db5e
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 343db5e

Please sign in to comment.