We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65eef98 commit d110548Copy full SHA for d110548
src/types.ts
@@ -59,8 +59,8 @@ export type MessageFormatPrimitiveValue =
59
| undefined;
60
61
export interface IntlFormatters {
62
- formatDate(value: number | Date, opts: FormatDateOptions): string;
63
- formatTime(value: number | Date, opts: FormatDateOptions): string;
+ formatDate(value: string | number | Date, opts: FormatDateOptions): string;
+ formatTime(value: string | number | Date, opts: FormatDateOptions): string;
64
formatRelativeTime(
65
value: number,
66
unit?: FormattableUnit,
0 commit comments