Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit a6d6ebb

Browse files
committed
Fix reduce return type
1 parent e39f029 commit a6d6ebb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parsestring.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Days } from './rrule'
55

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

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

0 commit comments

Comments
 (0)