File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
type t
2
2
3
+ type options = {
4
+ baseName ?: string ,
5
+ calendar ?: string , // TODO: probably the same as Core__Intl__DateTimeFormat.calendar?
6
+ collation ?: string , // TODO: probably the same as Core__Intl__Collator.collation?
7
+ hourCycle ?: [#h11 | #h12 | #h23 | #h24 ],
8
+ caseFirst ?: [#upper | #lower | # "false" ],
9
+ numberingSystem ?: Core__Intl__Common .numberingSystem ,
10
+ numeric ?: bool ,
11
+ language ?: string ,
12
+ script ?: string ,
13
+ region ?: string ,
14
+ }
15
+
3
16
@new external make : string => t = "Intl.Locale"
4
- @new external makeWithOptions : (string , { .. } ) => t = "Intl.Locale"
17
+ @new external makeWithOptions : (string , options ) => t = "Intl.Locale"
5
18
6
19
@get external baseName : t => string = "baseName"
7
20
@get external calendar : t => option <string > = "calendar"
You can’t perform that action at this time.
0 commit comments