Skip to content

Commit

Permalink
Fixes time annotation for MomentRange[]
Browse files Browse the repository at this point in the history
  • Loading branch information
bneiswander committed May 4, 2020
1 parent d5685aa commit 42b8573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface MomentRange {
export function generateTimeRanges(
timeString : string,
forMoment : moment.Moment = moment()
): [MomentRange] {
): MomentRange[] {
forMoment = forMoment.startOf('day');
return parser.parse(timeString).map((range : TimeRange) => {
const start = forMoment.clone();
Expand Down

0 comments on commit 42b8573

Please sign in to comment.