Skip to content

Commit

Permalink
Update typescript definition
Browse files Browse the repository at this point in the history
The compiler was complaining:

xxx/node_modules/dayjs/index.d.ts(73,3): error TS7010: 'isSame', which lacks return-type annotation, implicitly has an 'any' return type.
xxx/node_modules/dayjs/index.d.ts(75,3): error TS7010: 'isAfter', which lacks return-type annotation, implicitly has an 'any' return type.
  • Loading branch information
lucasavila00 authored May 9, 2018
1 parent 986f117 commit 29f7fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ declare class Dayjs {

isBefore(dayjs: Dayjs): boolean

isSame(dayjs: Dayjs)
isSame(dayjs: Dayjs): boolean

isAfter(dayjs: Dayjs)
isAfter(dayjs: Dayjs): boolean

isLeapYear(): boolean
}
Expand Down

0 comments on commit 29f7fe8

Please sign in to comment.