From 4523275b2c3cd949ce1c5476b4a03918ccde1026 Mon Sep 17 00:00:00 2001 From: Hui Hui <0w0@loli.pet> Date: Mon, 18 Feb 2019 14:05:44 +0800 Subject: [PATCH] fix: Update declaration file .diff .isBefore .isSame .isAfter (#496) --- index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index 3bc0cbc6..236a7d27 100644 --- a/index.d.ts +++ b/index.d.ts @@ -57,7 +57,7 @@ declare namespace dayjs { format(template?: string): string - diff(dayjs: Dayjs, unit: OpUnitType, float?: boolean): number + diff(dayjs: ConfigType, unit: OpUnitType, float?: boolean): number valueOf(): number @@ -77,11 +77,11 @@ declare namespace dayjs { toString(): string - isBefore(dayjs: Dayjs, unit?: OpUnitType): boolean + isBefore(dayjs: ConfigType, unit?: OpUnitType): boolean - isSame(dayjs: Dayjs, unit?: OpUnitType): boolean + isSame(dayjs: ConfigType, unit?: OpUnitType): boolean - isAfter(dayjs: Dayjs, unit?: OpUnitType): boolean + isAfter(dayjs: ConfigType, unit?: OpUnitType): boolean isLeapYear(): boolean