Skip to content

Commit

Permalink
chore: add @ts-expect-error
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Jan 12, 2022
1 parent f339903 commit aa6aade
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export class _Date {
let lastDate: string | Date = from;
for (let i = 0; i < num; i++) {
// TODO @Shinigami92 2022-01-11: It may be a bug that `lastDate` is passed to parse if it's a `Date` not a `string`
// @ts-expect-error
fromMilli = Date.parse(lastDate);
lastDate = new Date(fromMilli + dateOffset);
newDates.push(lastDate);
Expand Down

0 comments on commit aa6aade

Please sign in to comment.