Skip to content

Commit

Permalink
fix: Update declaration file .diff .isBefore .isSame .isAfter (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
huihuimoe authored and iamkun committed Feb 18, 2019
1 parent 56050c2 commit 4523275
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 4523275

Please sign in to comment.