Skip to content

Commit 4523275

Browse files
huihuimoeiamkun
authored andcommitted
fix: Update declaration file .diff .isBefore .isSame .isAfter (#496)
1 parent 56050c2 commit 4523275

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ declare namespace dayjs {
5757

5858
format(template?: string): string
5959

60-
diff(dayjs: Dayjs, unit: OpUnitType, float?: boolean): number
60+
diff(dayjs: ConfigType, unit: OpUnitType, float?: boolean): number
6161

6262
valueOf(): number
6363

@@ -77,11 +77,11 @@ declare namespace dayjs {
7777

7878
toString(): string
7979

80-
isBefore(dayjs: Dayjs, unit?: OpUnitType): boolean
80+
isBefore(dayjs: ConfigType, unit?: OpUnitType): boolean
8181

82-
isSame(dayjs: Dayjs, unit?: OpUnitType): boolean
82+
isSame(dayjs: ConfigType, unit?: OpUnitType): boolean
8383

84-
isAfter(dayjs: Dayjs, unit?: OpUnitType): boolean
84+
isAfter(dayjs: ConfigType, unit?: OpUnitType): boolean
8585

8686
isLeapYear(): boolean
8787

0 commit comments

Comments
 (0)