From 343db5ef70cc2afb34c1330a7b0b3051bd690efd Mon Sep 17 00:00:00 2001 From: tur1ng Date: Fri, 9 Jul 2021 10:13:20 +0430 Subject: [PATCH] add format object type to index.d.ts --- 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 313f95752..d5ce14a2f 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'