Merge pull request #3527 from piloopin/fix-intl.d.ts
Fix Intl.DateTimeFormat.format and Int.NumberFormatOptions signature
This commit is contained in:
commit
75e6071395
1 changed files with 6 additions and 1 deletions
7
src/lib/intl.d.ts
vendored
7
src/lib/intl.d.ts
vendored
|
@ -41,6 +41,11 @@ declare module Intl {
|
|||
currency?: string;
|
||||
currencyDisplay?: string;
|
||||
useGrouping?: boolean;
|
||||
minimumintegerDigits?: number;
|
||||
minimumFractionDigits?: number;
|
||||
maximumFractionDigits?: number;
|
||||
minimumSignificantDigits?: number;
|
||||
maximumSignificantDigits?: number;
|
||||
}
|
||||
|
||||
interface ResolvedNumberFormatOptions {
|
||||
|
@ -103,7 +108,7 @@ declare module Intl {
|
|||
}
|
||||
|
||||
interface DateTimeFormat {
|
||||
format(date: number): string;
|
||||
format(date?: Date | number): string;
|
||||
resolvedOptions(): ResolvedDateTimeFormatOptions;
|
||||
}
|
||||
var DateTimeFormat: {
|
||||
|
|
Loading…
Reference in a new issue