Skip to content

Commit

Permalink
Fix reduce return type
Browse files Browse the repository at this point in the history
  • Loading branch information
simonratner committed Aug 17, 2019
1 parent e39f029 commit 1e150c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsestring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Days } from './rrule'

export function parseString (rfcString: string): Partial<Options> {
const options = rfcString.split('\n').map(parseLine).filter(x => x !== null)
return options.reduce((acc, cur) => Object.assign(acc, cur))
return options.reduce((acc, cur) => Object.assign(acc, cur), {})
}

export function parseDateTime (line: string, end: boolean = false) {
Expand Down

0 comments on commit 1e150c6

Please sign in to comment.