@@ -107,25 +107,28 @@ object CollatorOptions {
107
107
* default is "false". This option can be set through an options
108
108
* property or through a Unicode extension key; if both are provided,
109
109
* the options property takes precedence. Implementations are not
110
- * required to support this property.
110
+ * required to support this property.
111
111
*
112
112
* MDN
113
113
*/
114
114
def apply (
115
- localeMatcher : js.UndefOr [String ] = js.undefined,
116
- usage : js.UndefOr [String ] = js.undefined,
117
- sensivity : js.UndefOr [String ] = js.undefined,
115
+ localeMatcher : js.UndefOr [String ] = js.undefined,
116
+ usage : js.UndefOr [String ] = js.undefined,
117
+ sensivity : js.UndefOr [String ] = js.undefined,
118
118
ignorePunctua tion : js.UndefOr [Boolean ] = js.undefined,
119
119
numeric : js.UndefOr [Boolean ] = js.undefined,
120
- caseFirst : js.UndefOr [String ] = js.undefined): CollatorOptions = {
121
- js.Dynamic .literal(
122
- localeMatcher = localeMatcher,
123
- usage = usage,
124
- sensivity = sensivity,
125
- ignorePunctua tion = ignorePunctua tion,
126
- numeric = numeric,
127
- caseFirst = caseFirst
128
- ).asInstanceOf [CollatorOptions ]
120
+ caseFirst : js.UndefOr [String ] = js.undefined
121
+ ): CollatorOptions = {
122
+ js.Dynamic
123
+ .literal(
124
+ localeMatcher = localeMatcher,
125
+ usage = usage,
126
+ sensivity = sensivity,
127
+ ignorePunctua tion = ignorePunctua tion,
128
+ numeric = numeric,
129
+ caseFirst = caseFirst
130
+ )
131
+ .asInstanceOf [CollatorOptions ]
129
132
}
130
133
}
131
134
@@ -149,7 +152,7 @@ trait DateTimeFormatOptions extends js.Object {
149
152
150
153
object DateTimeFormatOptions {
151
154
152
- /**
155
+ /**
153
156
* @param localeMatcher The locale matching algorithm to use. Possible values are "lookup" and
154
157
* "best fit"; the default is "best fit".
155
158
* For information about this option, see the Intl page.
@@ -178,35 +181,37 @@ object DateTimeFormatOptions {
178
181
* MDN
179
182
*/
180
183
def apply (
181
- localeMatcher : js.UndefOr [String ] = js.undefined,
182
- timeZone : js.UndefOr [String ] = js.undefined,
184
+ localeMatcher : js.UndefOr [String ] = js.undefined,
185
+ timeZone : js.UndefOr [String ] = js.undefined,
183
186
hour12 : js.UndefOr [Boolean ] = js.undefined,
184
- formatMatcher : js.UndefOr [String ] = js.undefined,
185
-
186
- weekday : js.UndefOr [String ] = js.undefined,
187
- era : js.UndefOr [String ] = js.undefined,
188
- year : js.UndefOr [String ] = js.undefined,
189
- month : js.UndefOr [String ] = js.undefined,
190
- day : js.UndefOr [String ] = js.undefined,
191
- hour : js.UndefOr [String ] = js.undefined,
192
- minute : js.UndefOr [String ] = js.undefined,
193
- second : js.UndefOr [String ] = js.undefined,
194
- timeZoneName : js.UndefOr [String ] = js.undefined): DateTimeFormatOptions = {
195
- js.Dynamic .literal(
196
- localeMatcher = localeMatcher,
197
- timeZone = timeZone,
198
- hour12 = hour12,
199
- formatMatcher = formatMatcher,
200
- weekday = weekday,
201
- era = era,
202
- year = year,
203
- month = month,
204
- day = day,
205
- hour = hour,
206
- minute = minute,
207
- second = second,
208
- timeZoneName = timeZoneName
209
- ).asInstanceOf [DateTimeFormatOptions ]
187
+ formatMatcher : js.UndefOr [String ] = js.undefined,
188
+ weekday : js.UndefOr [String ] = js.undefined,
189
+ era : js.UndefOr [String ] = js.undefined,
190
+ year : js.UndefOr [String ] = js.undefined,
191
+ month : js.UndefOr [String ] = js.undefined,
192
+ day : js.UndefOr [String ] = js.undefined,
193
+ hour : js.UndefOr [String ] = js.undefined,
194
+ minute : js.UndefOr [String ] = js.undefined,
195
+ second : js.UndefOr [String ] = js.undefined,
196
+ timeZoneName : js.UndefOr [String ] = js.undefined
197
+ ): DateTimeFormatOptions = {
198
+ js.Dynamic
199
+ .literal(
200
+ localeMatcher = localeMatcher,
201
+ timeZone = timeZone,
202
+ hour12 = hour12,
203
+ formatMatcher = formatMatcher,
204
+ weekday = weekday,
205
+ era = era,
206
+ year = year,
207
+ month = month,
208
+ day = day,
209
+ hour = hour,
210
+ minute = minute,
211
+ second = second,
212
+ timeZoneName = timeZoneName
213
+ )
214
+ .asInstanceOf [DateTimeFormatOptions ]
210
215
}
211
216
}
212
217
@@ -273,34 +278,35 @@ object NumberFormatOptions {
273
278
* @param minimumSignificantDigits The minimum number of significant digits to use. Possible
274
279
* values are from 1 to 21; the default is 1.
275
280
* @param maximumSignificantDigits The maximum number of significant digits to use. Possible
276
- * values are from 1 to 21; the default is minimumSignificantDigits.
281
+ * values are from 1 to 21; the default is minimumSignificantDigits.
277
282
*
278
283
* MDN
279
284
*/
280
285
def apply (
281
- localeMatcher : js.UndefOr [String ] = js.undefined,
282
- style : js.UndefOr [String ] = js.undefined,
283
- currency : js.UndefOr [String ] = js.undefined,
284
- currencyDisplay : js.UndefOr [String ] = js.undefined,
286
+ localeMatcher : js.UndefOr [String ] = js.undefined,
287
+ style : js.UndefOr [String ] = js.undefined,
288
+ currency : js.UndefOr [String ] = js.undefined,
289
+ currencyDisplay : js.UndefOr [String ] = js.undefined,
285
290
useGrouping : js.UndefOr [Boolean ] = js.undefined,
286
-
287
- minimumIntegerDigits : js.UndefOr [Double ] = js.undefined,
288
- minimumFractionDigits : js.UndefOr [Double ] = js.undefined,
289
- maximumFractionDigits : js.UndefOr [Double ] = js.undefined,
290
-
291
- minimumSignificantDigits : js.UndefOr [Double ] = js.undefined,
292
- maximumSignificantDigits : js.UndefOr [Double ] = js.undefined): NumberFormatOptions = {
293
- js.Dynamic .literal(
294
- localeMatcher = localeMatcher,
295
- style = style,
296
- currency = currency,
297
- currencyDisplay = currencyDisplay,
298
- useGrouping = useGrouping,
299
- minimumIntegerDigits = minimumIntegerDigits,
300
- minimumFractionDigits = minimumFractionDigits,
301
- maximumFractionDigits = maximumFractionDigits,
302
- minimumSignificantDigits = minimumSignificantDigits,
303
- maximumSignificantDigits = maximumSignificantDigits
304
- ).asInstanceOf [NumberFormatOptions ]
291
+ minimumIntegerDigits : js.UndefOr [Double ] = js.undefined,
292
+ minimumFractionDigits : js.UndefOr [Double ] = js.undefined,
293
+ maximumFractionDigits : js.UndefOr [Double ] = js.undefined,
294
+ minimumSignificantDigits : js.UndefOr [Double ] = js.undefined,
295
+ maximumSignificantDigits : js.UndefOr [Double ] = js.undefined
296
+ ): NumberFormatOptions = {
297
+ js.Dynamic
298
+ .literal(
299
+ localeMatcher = localeMatcher,
300
+ style = style,
301
+ currency = currency,
302
+ currencyDisplay = currencyDisplay,
303
+ useGrouping = useGrouping,
304
+ minimumIntegerDigits = minimumIntegerDigits,
305
+ minimumFractionDigits = minimumFractionDigits,
306
+ maximumFractionDigits = maximumFractionDigits,
307
+ minimumSignificantDigits = minimumSignificantDigits,
308
+ maximumSignificantDigits = maximumSignificantDigits
309
+ )
310
+ .asInstanceOf [NumberFormatOptions ]
305
311
}
306
312
}
0 commit comments