Skip to content

Commit

Permalink
fix: accept number in format
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Apr 18, 2022
1 parent b5383e5 commit 97b52bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface Locale {
}

export interface Formatter {
format(firstDate: Date, secondDate: Date, options?: Config): string;
format(firstDate: Date | number, secondDate: Date | number, options?: Config): string;
}

export function create(config?: Config): Formatter;
Expand Down

0 comments on commit 97b52bb

Please sign in to comment.