Skip to content

Commit

Permalink
Merge pull request #544 from goodoldneon/fix-parseDate-type
Browse files Browse the repository at this point in the history
Fix parseDate return type not nullable
  • Loading branch information
wanasit committed Jan 20, 2024
2 parents 1f9f741 + 3126f44 commit b4e1d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ export function parse(text: string, ref?: ParsingReference | Date, option?: Pars
/**
* A shortcut for {@link en | chrono.en.casual.parseDate()}
*/
export function parseDate(text: string, ref?: ParsingReference | Date, option?: ParsingOption): Date {
export function parseDate(text: string, ref?: ParsingReference | Date, option?: ParsingOption): Date | null {
return casual.parseDate(text, ref, option);
}

0 comments on commit b4e1d43

Please sign in to comment.