From f0f43d29b52d70784e03d6f37baa5b9d03b091c2 Mon Sep 17 00:00:00 2001 From: pochi-sato Date: Tue, 18 Jun 2019 16:51:45 +0900 Subject: [PATCH] fix: Update types of `.diff` API (#617) --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index b2864e01..55b3f330 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -65,7 +65,7 @@ declare namespace dayjs { format(template?: string): string - diff(date: ConfigType, unit: QUnitType | OpUnitType, float?: boolean): number + diff(date: ConfigType, unit?: QUnitType | OpUnitType, float?: boolean): number valueOf(): number