Skip to content

Commit 9dccafa

Browse files
committed
Add @notundefined attribute to Stdlib_Intl_*
1 parent 69156a6 commit 9dccafa

13 files changed

+75
-10
lines changed

runtime/Stdlib_Intl_Collator.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@notUndefined
12
type t
23

34
type usage = [#sort | #search]

runtime/Stdlib_Intl_DateTimeFormat.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@notUndefined
12
type t
23

34
type dateStyle = [#full | #long | #medium | #short]

runtime/Stdlib_Intl_ListFormat.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@notUndefined
12
type t
23

34
type listType = [

runtime/Stdlib_Intl_Locale.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@notUndefined
12
type t
23

34
type options = {

runtime/Stdlib_Intl_NumberFormat.res

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Grouping = Stdlib_Intl_NumberFormat_Grouping
22

3+
@notUndefined
34
type t
45

56
/**
@@ -211,7 +212,7 @@ external formatBigIntRangeToParts: (t, ~start: bigint, ~end: bigint) => array<nu
211212
external formatStringToParts: (t, string) => array<numberFormatRangePart> = "formatToParts"
212213

213214
/**
214-
`ignore(numberGrouping)` ignores the provided numberGrouping and returns unit.
215+
`ignore(numberFormat)` ignores the provided numberFormat and returns unit.
215216
216217
This helper is useful when you want to discard a value (for example, the result of an operation with side effects)
217218
without having to store or process it further.

runtime/Stdlib_Intl_NumberFormat_Grouping.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@notUndefined
12
type t
23

34
type parsed = [#bool(bool) | #always | #auto | #min2]

runtime/Stdlib_Intl_PluralRules.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@notUndefined
12
type t
23

34
type localeType = [#cardinal | #ordinal]

runtime/Stdlib_Intl_RelativeTimeFormat.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@notUndefined
12
type t
23

34
type numeric = [#always | #auto]

runtime/Stdlib_Intl_Segmenter.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@notUndefined
12
type t
23

34
type granularity = [#grapheme | #word | #sentence]

runtime/Stdlib_Intl_Segments.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
A Segments instance is an object that represents the segments of a specific string, subject to the locale and options of its constructing Intl.Segmenter instance.
33
https://tc39.es/ecma402/#sec-segments-objects
44
*/
5+
@notUndefined
56
type t
67

78
type segmentData = {

0 commit comments

Comments
 (0)