File tree 4 files changed +27
-10
lines changed
4 files changed +27
-10
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,4 @@ and limitations under the License.
22
22
/// <reference lib="es2021.promise" />
23
23
/// <reference lib="es2021.string" />
24
24
/// <reference lib="es2021.weakref" />
25
+ /// <reference lib="es2021.intl" />
Original file line number Diff line number Diff line change @@ -13,16 +13,22 @@ declare namespace Intl {
13
13
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
14
14
*/
15
15
type RelativeTimeFormatUnit =
16
- | "year" | "years"
17
- | "quarter" | "quarters"
18
- | "month" | "months"
19
- | "week" | "weeks"
20
- | "day" | "days"
21
- | "hour" | "hours"
22
- | "minute" | "minutes"
23
- | "second" | "seconds"
24
- ;
25
-
16
+ | "year"
17
+ | "years"
18
+ | "quarter"
19
+ | "quarters"
20
+ | "month"
21
+ | "months"
22
+ | "week"
23
+ | "weeks"
24
+ | "day"
25
+ | "days"
26
+ | "hour"
27
+ | "hours"
28
+ | "minute"
29
+ | "minutes"
30
+ | "second"
31
+ | "seconds" ;
26
32
/**
27
33
* The locale matching algorithm to use.
28
34
*
Original file line number Diff line number Diff line change
1
+ declare namespace Intl {
2
+
3
+ interface DateTimeFormatOptions {
4
+ dateStyle ?: "full" | "long" | "medium" | "short" ;
5
+ timeStyle ?: "full" | "long" | "medium" | "short" ;
6
+ dayPeriod ?: "narrow" | "short" | "long" ;
7
+ fractionalSecondDigits ?: 0 | 1 | 2 | 3 ;
8
+ }
9
+ }
Original file line number Diff line number Diff line change 51
51
" es2021.string" ,
52
52
" es2021.promise" ,
53
53
" es2021.weakref" ,
54
+ " es2021.intl" ,
54
55
" esnext.intl" ,
55
56
// Default libraries
56
57
" es5.full" ,
You can’t perform that action at this time.
0 commit comments