From 5a79cc6408e825d9e123629eb44fc19c996d7751 Mon Sep 17 00:00:00 2001 From: Mohammad ali Ali panah <58308349+always-maap@users.noreply.github.com> Date: Mon, 12 Jul 2021 08:16:49 +0430 Subject: [PATCH] fix: add format object type to type file (#1572) --- types/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 313f9575..d5ce14a2 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -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'