Skip to content

Commit 75e6071

Browse files
committed
Merge pull request #3527 from piloopin/fix-intl.d.ts
Fix Intl.DateTimeFormat.format and Int.NumberFormatOptions signature
2 parents 247d582 + 6ee1890 commit 75e6071

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib/intl.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ declare module Intl {
4141
currency?: string;
4242
currencyDisplay?: string;
4343
useGrouping?: boolean;
44+
minimumintegerDigits?: number;
45+
minimumFractionDigits?: number;
46+
maximumFractionDigits?: number;
47+
minimumSignificantDigits?: number;
48+
maximumSignificantDigits?: number;
4449
}
4550

4651
interface ResolvedNumberFormatOptions {
@@ -103,7 +108,7 @@ declare module Intl {
103108
}
104109

105110
interface DateTimeFormat {
106-
format(date: number): string;
111+
format(date?: Date | number): string;
107112
resolvedOptions(): ResolvedDateTimeFormatOptions;
108113
}
109114
var DateTimeFormat: {

0 commit comments

Comments
 (0)