@@ -53,239 +53,6 @@ declare namespace Intl {
53
53
*/
54
54
type RelativeTimeFormatStyle = "long" | "short" | "narrow" ;
55
55
56
- /**
57
- * Unicode Calendar Identifier
58
- *
59
- * [Reference](http://unicode.org/reports/tr35/#UnicodeCalendarIdentifier)
60
- *
61
- * [Source](https://github.com/unicode-org/cldr/blob/b805d0b/common/bcp47/calendar.xml)
62
- */
63
- type Calendar =
64
- // Thai Buddhist calendar
65
- | "buddhist"
66
- // Traditional Chinese calendar
67
- | "chinese"
68
- // Coptic calendar
69
- | "coptic"
70
- // Traditional Korean calendar
71
- | "dangi"
72
- // Ethiopic calendar, Amete Alem (epoch approx. 5493 B.C.E)
73
- | "ethiopic-amete-alem" | "ethioaa"
74
- // Ethiopic calendar, Amete Mihret (epoch approx, 8 C.E.)
75
- | "ethiopic"
76
- // Gregorian calendar
77
- | "gregorian"
78
- // Gregorian calendar (alias)
79
- | "gregory"
80
- // Traditional Hebrew calendar
81
- | "hebrew"
82
- // Indian calendar
83
- | "indian"
84
- // Islamic calendar
85
- | "islamic"
86
- // Islamic calendar, Umm al-Qura
87
- | "islamic-umalqura"
88
- // Islamic calendar, tabular (intercalary years [2,5,7,10,13,16,18,21,24,26,29] - astronomical epoch)
89
- | "islamic-tbla"
90
- // Islamic calendar, tabular (intercalary years [2,5,7,10,13,16,18,21,24,26,29] - civil epoch)
91
- | "islamic-civil"
92
- | "islamicc" // Deprecated alias
93
- // Islamic calendar, Saudi Arabia sighting
94
- | "islamic-rgsa"
95
- // ISO calendar (Gregorian calendar using the ISO 8601 calendar week rules)
96
- | "iso8601"
97
- // Japanese Imperial calendar
98
- | "japanese"
99
- // Persian calendar
100
- | "persian"
101
- // Republic of China calendar
102
- | "roc"
103
- ;
104
-
105
- /**
106
- * Unicode Number System Identifier
107
- *
108
- * [Reference](http://unicode.org/reports/tr35/#UnicodeNumberSystemIdentifier)
109
- *
110
- * [Source](https://github.com/unicode-org/cldr/blob/be7a953/common/bcp47/number.xml)
111
- */
112
- type NumberingSystem =
113
- // Adlam digits
114
- | "adlm"
115
- // Ahom digits
116
- | "ahom"
117
- // Arabic-Indic digits
118
- | "arab"
119
- // Extended Arabic-Indic digits
120
- | "arabext"
121
- // Armenian upper case numerals — algorithmic
122
- | "armn"
123
- // Armenian lower case numerals — algorithmic
124
- | "armnlow"
125
- // Balinese digits
126
- | "bali"
127
- // Bengali digits
128
- | "beng"
129
- // Bhaiksuki digits
130
- | "bhks"
131
- // Brahmi digits
132
- | "brah"
133
- // Chakma digits
134
- | "cakm"
135
- // Cham digits
136
- | "cham"
137
- // Cyrillic numerals — algorithmic
138
- | "cyrl"
139
- // Devanagari digits
140
- | "deva"
141
- // Dives Akuru digits
142
- | "diak"
143
- // Ethiopic numerals — algorithmic
144
- | "ethi"
145
- // Financial numerals — may be algorithmic
146
- | "finance"
147
- // Full width digits
148
- | "fullwide"
149
- // Georgian numerals — algorithmic
150
- | "geor"
151
- // Gunjala Gondi digits
152
- | "gong"
153
- // Masaram Gondi digits
154
- | "gonm"
155
- // Greek upper case numerals — algorithmic
156
- | "grek"
157
- // Greek lower case numerals — algorithmic
158
- | "greklow"
159
- // Gujarati digits
160
- | "gujr"
161
- // Gurmukhi digits
162
- | "guru"
163
- // Han-character day-of-month numbering for lunar/other traditional calendars"
164
- | "hanidays"
165
- // Positional decimal system using Chinese number ideographs as digits
166
- | "hanidec"
167
- // Simplified Chinese numerals — algorithmic
168
- | "hans"
169
- // Simplified Chinese financial numerals — algorithmic
170
- | "hansfin"
171
- // Traditional Chinese numerals — algorithmic
172
- | "hant"
173
- // Traditional Chinese financial numerals — algorithmic
174
- | "hantfin"
175
- // Hebrew numerals — algorithmic
176
- | "hebr"
177
- // Pahawh Hmong digits
178
- | "hmng"
179
- // Nyiakeng Puachue Hmong digits
180
- | "hmnp"
181
- // Javanese digits
182
- | "java"
183
- // Japanese numerals — algorithmic
184
- | "jpan"
185
- // Japanese financial numerals — algorithmic
186
- | "jpanfin"
187
- // Japanese first-year Gannen numbering for Japanese calendar
188
- | "jpanyear"
189
- // Kayah Li digits
190
- | "kali"
191
- // Khmer digits
192
- | "khmr"
193
- // Kannada digits
194
- | "knda"
195
- // Tai Tham Hora (secular) digits
196
- | "lana"
197
- // Tai Tham Tham (ecclesiastical) digits
198
- | "lanatham"
199
- // Lao digits
200
- | "laoo"
201
- // Latin digits
202
- | "latn"
203
- // Lepcha digits
204
- | "lepc"
205
- // Limbu digits
206
- | "limb"
207
- // Mathematical bold digits
208
- | "mathbold"
209
- // Mathematical double-struck digits
210
- | "mathdbl"
211
- // Mathematical monospace digits
212
- | "mathmono"
213
- // Mathematical sans-serif bold digits
214
- | "mathsanb"
215
- // Mathematical sans-serif digits
216
- | "mathsans"
217
- // Malayalam digits
218
- | "mlym"
219
- // Modi digits
220
- | "modi"
221
- // Mongolian digits
222
- | "mong"
223
- // Mro digits
224
- | "mroo"
225
- // Meetei Mayek digits
226
- | "mtei"
227
- // Myanmar digits
228
- | "mymr"
229
- // Myanmar Shan digits
230
- | "mymrshan"
231
- // Myanmar Tai Laing digits
232
- | "mymrtlng"
233
- // Native digits
234
- | "native"
235
- // Newa digits
236
- | "newa"
237
- // N'Ko digits
238
- | "nkoo"
239
- // Ol Chiki digits
240
- | "olck"
241
- // Oriya digits
242
- | "orya"
243
- // Osmanya digits
244
- | "osma"
245
- // Hanifi Rohingya digits
246
- | "rohg"
247
- // Roman upper case numerals — algorithmic
248
- | "roman"
249
- // Roman lowercase numerals — algorithmic
250
- | "romanlow"
251
- // Saurashtra digits
252
- | "saur"
253
- // Sharada digits
254
- | "shrd"
255
- // Khudawadi digits
256
- | "sind"
257
- // Sinhala Lith digits
258
- | "sinh"
259
- // Sora_Sompeng digits
260
- | "sora"
261
- // Sundanese digits
262
- | "sund"
263
- // Takri digits
264
- | "takr"
265
- // New Tai Lue digits
266
- | "talu"
267
- // Tamil numerals — algorithmic
268
- | "taml"
269
- // Modern Tamil decimal digits
270
- | "tamldec"
271
- // Telugu digits
272
- | "telu"
273
- // Thai digits
274
- | "thai"
275
- // Tirhuta digits
276
- | "tirh"
277
- // Tibetan digits
278
- | "tibt"
279
- // Traditional numerals — may be algorithmic
280
- | "traditional" | "traditio"
281
- // Vai digits
282
- | "vaii"
283
- // Warang Citi digits
284
- | "wara"
285
- // Wancho digits
286
- | "wcho"
287
- ;
288
-
289
56
/**
290
57
* An object with some or all of properties of `options` parameter
291
58
* of `Intl.RelativeTimeFormat` constructor.
@@ -513,9 +280,9 @@ declare namespace Intl {
513
280
interface DateTimeFormatOptions {
514
281
dateStyle ?: "full" | "long" | "medium" | "short" ;
515
282
timeStyle ?: "full" | "long" | "medium" | "short" ;
516
- calendar ?: Calendar ;
283
+ calendar ?: string ;
517
284
dayPeriod ?: "narrow" | "short" | "long" ;
518
- numberingSystem ?: NumberingSystem ;
285
+ numberingSystem ?: string ;
519
286
hourCycle ?: "h11" | "h12" | "h23" | "h24" ;
520
287
fractionalSecondDigits ?: 0 | 1 | 2 | 3 ;
521
288
}
0 commit comments