|
1 |
| -declare namespace Intl { |
2 |
| - interface NumberFormatUseGroupingRegistry { |
3 |
| - true: any; |
4 |
| - false: any; |
5 |
| - min2: any; |
6 |
| - auto: any; |
7 |
| - always: any; |
8 |
| - } |
9 |
| - |
10 |
| - interface NumberFormatSignDisplayRegistry { |
11 |
| - negative: any; |
12 |
| - } |
13 |
| - |
14 |
| - interface NumberFormatOptions { |
15 |
| - roundingPriority?: "auto" | "morePrecision" | "lessPrecision" | undefined; |
16 |
| - roundingIncrement?: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000 | undefined; |
17 |
| - roundingMode?: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined; |
18 |
| - trailingZeroDisplay?: "auto" | "stripIfInteger" | undefined; |
19 |
| - } |
20 |
| - |
21 |
| - interface ResolvedNumberFormatOptions { |
22 |
| - roundingPriority: "auto" | "morePrecision" | "lessPrecision"; |
23 |
| - roundingMode: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven"; |
24 |
| - roundingIncrement: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000; |
25 |
| - trailingZeroDisplay: "auto" | "stripIfInteger"; |
26 |
| - } |
27 |
| - |
28 |
| - interface NumberRangeFormatPart extends NumberFormatPart { |
29 |
| - source: "startRange" | "endRange" | "shared"; |
30 |
| - } |
31 |
| - |
32 |
| - interface NumberFormat { |
33 |
| - formatRange(start: number | bigint, end: number | bigint): string; |
34 |
| - formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[]; |
35 |
| - } |
36 |
| -} |
| 1 | +declare namespace Intl { |
| 2 | + interface NumberFormatUseGroupingRegistry { |
| 3 | + true: any; |
| 4 | + false: any; |
| 5 | + min2: any; |
| 6 | + auto: any; |
| 7 | + always: any; |
| 8 | + } |
| 9 | + |
| 10 | + interface NumberFormatSignDisplayRegistry { |
| 11 | + negative: any; |
| 12 | + } |
| 13 | + |
| 14 | + interface NumberFormatOptions { |
| 15 | + roundingPriority?: "auto" | "morePrecision" | "lessPrecision" | undefined; |
| 16 | + roundingIncrement?: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000 | undefined; |
| 17 | + roundingMode?: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined; |
| 18 | + trailingZeroDisplay?: "auto" | "stripIfInteger" | undefined; |
| 19 | + } |
| 20 | + |
| 21 | + interface ResolvedNumberFormatOptions { |
| 22 | + roundingPriority: "auto" | "morePrecision" | "lessPrecision"; |
| 23 | + roundingMode: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven"; |
| 24 | + roundingIncrement: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000; |
| 25 | + trailingZeroDisplay: "auto" | "stripIfInteger"; |
| 26 | + } |
| 27 | + |
| 28 | + interface NumberRangeFormatPart extends NumberFormatPart { |
| 29 | + source: "startRange" | "endRange" | "shared"; |
| 30 | + } |
| 31 | + |
| 32 | + interface NumberFormat { |
| 33 | + formatRange(start: number | bigint, end: number | bigint): string; |
| 34 | + formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[]; |
| 35 | + } |
| 36 | +} |
0 commit comments