File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/main/scala/org/scalajs/dom/experimental/intl Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ class Collator(locales: js.UndefOr[String | js.Array[String]] = js.undefined,
35
35
*/
36
36
@ js.native
37
37
@ JSGlobal (" Intl.DateTimeFormat" )
38
- class DateTimeFormat (locales : String | js.Array [String ],
38
+ class DateTimeFormat (
39
+ locales : js.UndefOr [String | js.Array [String ]] = js.undefined,
39
40
options : js.UndefOr [DateTimeFormatOptions ] = js.undefined)
40
41
extends js.Object {
41
42
def format (date : js.Date ): String = js.native
@@ -52,8 +53,9 @@ class DateTimeFormat(locales: String | js.Array[String],
52
53
*/
53
54
@ js.native
54
55
@ JSGlobal (" Intl.NumberFormat" )
55
- class NumberFormat (locales : String | js.Array [String ],
56
- options : js.UndefOr [NumberFormatOptions ])
56
+ class NumberFormat (
57
+ locales : js.UndefOr [String | js.Array [String ]] = js.undefined,
58
+ options : js.UndefOr [NumberFormatOptions ] = js.undefined)
57
59
extends js.Object {
58
60
def format (number : Double ): String = js.native
59
61
def resolvedOptions (): NumberFormatOptions = js.native
You can’t perform that action at this time.
0 commit comments