Skip to content

Commit

Permalink
Fix parseDate return type not nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
goodoldneon committed Jan 15, 2024
1 parent 1f9f741 commit 3126f44
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 3126f44

Please sign in to comment.