refactor(intl facade): remove outdated code
This commit is contained in:
parent
8e38291156
commit
4d825dd9fd
|
@ -1,46 +1,3 @@
|
||||||
|
|
||||||
// Modified version of internal Typescript intl.d.ts.
|
|
||||||
// TODO(piloopin): remove when https://github.com/Microsoft/TypeScript/issues/3521 is shipped.
|
|
||||||
declare module Intl {
|
|
||||||
interface NumberFormatOptions {
|
|
||||||
localeMatcher?: string;
|
|
||||||
style?: string;
|
|
||||||
currency?: string;
|
|
||||||
currencyDisplay?: string;
|
|
||||||
useGrouping?: boolean;
|
|
||||||
minimumIntegerDigits?: number;
|
|
||||||
minimumFractionDigits?: number;
|
|
||||||
maximumFractionDigits?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface NumberFormat {
|
|
||||||
format(value: number): string;
|
|
||||||
}
|
|
||||||
|
|
||||||
var NumberFormat: {new (locale?: string, options?: NumberFormatOptions): NumberFormat};
|
|
||||||
|
|
||||||
interface DateTimeFormatOptions {
|
|
||||||
localeMatcher?: string;
|
|
||||||
weekday?: string;
|
|
||||||
era?: string;
|
|
||||||
year?: string;
|
|
||||||
month?: string;
|
|
||||||
day?: string;
|
|
||||||
hour?: string;
|
|
||||||
minute?: string;
|
|
||||||
second?: string;
|
|
||||||
timeZoneName?: string;
|
|
||||||
formatMatcher?: string;
|
|
||||||
hour12?: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface DateTimeFormat {
|
|
||||||
format(date?: Date | number): string;
|
|
||||||
}
|
|
||||||
|
|
||||||
var DateTimeFormat: {new (locale?: string, options?: DateTimeFormatOptions): DateTimeFormat};
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum NumberFormatStyle {
|
export enum NumberFormatStyle {
|
||||||
Decimal,
|
Decimal,
|
||||||
Percent,
|
Percent,
|
||||||
|
|
Loading…
Reference in New Issue