diff --git a/data/api/latest/belt.json b/data/api/latest/belt.json index 236ddba2b..32ad01f8d 100644 --- a/data/api/latest/belt.json +++ b/data/api/latest/belt.json @@ -91,7 +91,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t<'b>, (. key, 'b) => unit) => unit" + "signature": "let forEachU: (t<'b>, (key, 'b) => unit) => unit" }, { "id": "Belt.HashMap.String.forEach", @@ -105,7 +105,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'b>, 'c, (. 'c, key, 'b) => 'c) => 'c" + "signature": "let reduceU: (t<'b>, 'c, ('c, key, 'b) => 'c) => 'c" }, { "id": "Belt.HashMap.String.reduce", @@ -119,7 +119,7 @@ "kind": "value", "name": "keepMapInPlaceU", "docstrings": [], - "signature": "let keepMapInPlaceU: (t<'a>, (. key, 'a) => option<'a>) => unit" + "signature": "let keepMapInPlaceU: (t<'a>, (key, 'a) => option<'a>) => unit" }, { "id": "Belt.HashMap.String.keepMapInPlace", @@ -270,7 +270,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t<'b>, (. key, 'b) => unit) => unit" + "signature": "let forEachU: (t<'b>, (key, 'b) => unit) => unit" }, { "id": "Belt.HashMap.Int.forEach", @@ -284,7 +284,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'b>, 'c, (. 'c, key, 'b) => 'c) => 'c" + "signature": "let reduceU: (t<'b>, 'c, ('c, key, 'b) => 'c) => 'c" }, { "id": "Belt.HashMap.Int.reduce", @@ -298,7 +298,7 @@ "kind": "value", "name": "keepMapInPlaceU", "docstrings": [], - "signature": "let keepMapInPlaceU: (t<'a>, (. key, 'a) => option<'a>) => unit" + "signature": "let keepMapInPlaceU: (t<'a>, (key, 'a) => option<'a>) => unit" }, { "id": "Belt.HashMap.Int.keepMapInPlace", @@ -441,7 +441,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t, (. key) => unit) => unit" + "signature": "let forEachU: (t, key => unit) => unit" }, { "id": "Belt.HashSet.String.forEach", @@ -455,7 +455,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t, 'c, (. 'c, key) => 'c) => 'c" + "signature": "let reduceU: (t, 'c, ('c, key) => 'c) => 'c" }, { "id": "Belt.HashSet.String.reduce", @@ -584,7 +584,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t, (. key) => unit) => unit" + "signature": "let forEachU: (t, key => unit) => unit" }, { "id": "Belt.HashSet.Int.forEach", @@ -598,7 +598,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t, 'c, (. 'c, key) => 'c) => 'c" + "signature": "let reduceU: (t, 'c, ('c, key) => 'c) => 'c" }, { "id": "Belt.HashSet.Int.reduce", @@ -703,7 +703,7 @@ "kind": "value", "name": "cmpU", "docstrings": [], - "signature": "let cmpU: (t<'a>, t<'a>, (. 'a, 'a) => int) => int" + "signature": "let cmpU: (t<'a>, t<'a>, ('a, 'a) => int) => int" }, { "id": "Belt.MutableMap.String.cmp", @@ -719,7 +719,7 @@ "kind": "value", "name": "eqU", "docstrings": [], - "signature": "let eqU: (t<'a>, t<'a>, (. 'a, 'a) => bool) => bool" + "signature": "let eqU: (t<'a>, t<'a>, ('a, 'a) => bool) => bool" }, { "id": "Belt.MutableMap.String.eq", @@ -735,7 +735,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t<'a>, (. key, 'a) => unit) => unit" + "signature": "let forEachU: (t<'a>, (key, 'a) => unit) => unit" }, { "id": "Belt.MutableMap.String.forEach", @@ -751,7 +751,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'a>, 'b, (. 'b, key, 'a) => 'b) => 'b" + "signature": "let reduceU: (t<'a>, 'b, ('b, key, 'a) => 'b) => 'b" }, { "id": "Belt.MutableMap.String.reduce", @@ -767,7 +767,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t<'a>, (. key, 'a) => bool) => bool" + "signature": "let everyU: (t<'a>, (key, 'a) => bool) => bool" }, { "id": "Belt.MutableMap.String.every", @@ -783,7 +783,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t<'a>, (. key, 'a) => bool) => bool" + "signature": "let someU: (t<'a>, (key, 'a) => bool) => bool" }, { "id": "Belt.MutableMap.String.some", @@ -963,7 +963,7 @@ "kind": "value", "name": "updateU", "docstrings": [], - "signature": "let updateU: (t<'a>, key, (. option<'a>) => option<'a>) => unit" + "signature": "let updateU: (t<'a>, key, option<'a> => option<'a>) => unit" }, { "id": "Belt.MutableMap.String.update", @@ -977,7 +977,7 @@ "kind": "value", "name": "mapU", "docstrings": [], - "signature": "let mapU: (t<'a>, (. 'a) => 'b) => t<'b>" + "signature": "let mapU: (t<'a>, 'a => 'b) => t<'b>" }, { "id": "Belt.MutableMap.String.map", @@ -993,7 +993,7 @@ "kind": "value", "name": "mapWithKeyU", "docstrings": [], - "signature": "let mapWithKeyU: (t<'a>, (. key, 'a) => 'b) => t<'b>" + "signature": "let mapWithKeyU: (t<'a>, (key, 'a) => 'b) => t<'b>" }, { "id": "Belt.MutableMap.String.mapWithKey", @@ -1056,7 +1056,7 @@ "kind": "value", "name": "cmpU", "docstrings": [], - "signature": "let cmpU: (t<'a>, t<'a>, (. 'a, 'a) => int) => int" + "signature": "let cmpU: (t<'a>, t<'a>, ('a, 'a) => int) => int" }, { "id": "Belt.MutableMap.Int.cmp", @@ -1072,7 +1072,7 @@ "kind": "value", "name": "eqU", "docstrings": [], - "signature": "let eqU: (t<'a>, t<'a>, (. 'a, 'a) => bool) => bool" + "signature": "let eqU: (t<'a>, t<'a>, ('a, 'a) => bool) => bool" }, { "id": "Belt.MutableMap.Int.eq", @@ -1088,7 +1088,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t<'a>, (. key, 'a) => unit) => unit" + "signature": "let forEachU: (t<'a>, (key, 'a) => unit) => unit" }, { "id": "Belt.MutableMap.Int.forEach", @@ -1104,7 +1104,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'a>, 'b, (. 'b, key, 'a) => 'b) => 'b" + "signature": "let reduceU: (t<'a>, 'b, ('b, key, 'a) => 'b) => 'b" }, { "id": "Belt.MutableMap.Int.reduce", @@ -1120,7 +1120,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t<'a>, (. key, 'a) => bool) => bool" + "signature": "let everyU: (t<'a>, (key, 'a) => bool) => bool" }, { "id": "Belt.MutableMap.Int.every", @@ -1136,7 +1136,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t<'a>, (. key, 'a) => bool) => bool" + "signature": "let someU: (t<'a>, (key, 'a) => bool) => bool" }, { "id": "Belt.MutableMap.Int.some", @@ -1316,7 +1316,7 @@ "kind": "value", "name": "updateU", "docstrings": [], - "signature": "let updateU: (t<'a>, key, (. option<'a>) => option<'a>) => unit" + "signature": "let updateU: (t<'a>, key, option<'a> => option<'a>) => unit" }, { "id": "Belt.MutableMap.Int.update", @@ -1330,7 +1330,7 @@ "kind": "value", "name": "mapU", "docstrings": [], - "signature": "let mapU: (t<'a>, (. 'a) => 'b) => t<'b>" + "signature": "let mapU: (t<'a>, 'a => 'b) => t<'b>" }, { "id": "Belt.MutableMap.Int.map", @@ -1346,7 +1346,7 @@ "kind": "value", "name": "mapWithKeyU", "docstrings": [], - "signature": "let mapWithKeyU: (t<'a>, (. key, 'a) => 'b) => t<'b>" + "signature": "let mapWithKeyU: (t<'a>, (key, 'a) => 'b) => t<'b>" }, { "id": "Belt.MutableMap.Int.mapWithKey", @@ -1514,7 +1514,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t, (. value) => unit) => unit" + "signature": "let forEachU: (t, value => unit) => unit" }, { "id": "Belt.MutableSet.String.forEach", @@ -1530,7 +1530,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t, 'a, (. 'a, value) => 'a) => 'a" + "signature": "let reduceU: (t, 'a, ('a, value) => 'a) => 'a" }, { "id": "Belt.MutableSet.String.reduce", @@ -1546,7 +1546,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t, (. value) => bool) => bool" + "signature": "let everyU: (t, value => bool) => bool" }, { "id": "Belt.MutableSet.String.every", @@ -1562,7 +1562,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t, (. value) => bool) => bool" + "signature": "let someU: (t, value => bool) => bool" }, { "id": "Belt.MutableSet.String.some", @@ -1578,7 +1578,7 @@ "kind": "value", "name": "keepU", "docstrings": [], - "signature": "let keepU: (t, (. value) => bool) => t" + "signature": "let keepU: (t, value => bool) => t" }, { "id": "Belt.MutableSet.String.keep", @@ -1594,7 +1594,7 @@ "kind": "value", "name": "partitionU", "docstrings": [], - "signature": "let partitionU: (t, (. value) => bool) => (t, t)" + "signature": "let partitionU: (t, value => bool) => (t, t)" }, { "id": "Belt.MutableSet.String.partition", @@ -1856,7 +1856,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t, (. value) => unit) => unit" + "signature": "let forEachU: (t, value => unit) => unit" }, { "id": "Belt.MutableSet.Int.forEach", @@ -1872,7 +1872,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t, 'a, (. 'a, value) => 'a) => 'a" + "signature": "let reduceU: (t, 'a, ('a, value) => 'a) => 'a" }, { "id": "Belt.MutableSet.Int.reduce", @@ -1888,7 +1888,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t, (. value) => bool) => bool" + "signature": "let everyU: (t, value => bool) => bool" }, { "id": "Belt.MutableSet.Int.every", @@ -1904,7 +1904,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t, (. value) => bool) => bool" + "signature": "let someU: (t, value => bool) => bool" }, { "id": "Belt.MutableSet.Int.some", @@ -1920,7 +1920,7 @@ "kind": "value", "name": "keepU", "docstrings": [], - "signature": "let keepU: (t, (. value) => bool) => t" + "signature": "let keepU: (t, value => bool) => t" }, { "id": "Belt.MutableSet.Int.keep", @@ -1936,7 +1936,7 @@ "kind": "value", "name": "partitionU", "docstrings": [], - "signature": "let partitionU: (t, (. value) => bool) => (t, t)" + "signature": "let partitionU: (t, value => bool) => (t, t)" }, { "id": "Belt.MutableSet.Int.partition", @@ -2088,21 +2088,21 @@ "kind": "value", "name": "cmpU", "docstrings": [], - "signature": "let cmpU: (\\n t<'k, 'v, 'id>,\\n t<'k, 'v, 'id>,\\n ~kcmp: cmp<'k, 'id>,\\n ~vcmp: (. 'v, 'v) => int,\\n) => int" + "signature": "let cmpU: (\n t<'k, 'v, 'id>,\n t<'k, 'v, 'id>,\n ~kcmp: cmp<'k, 'id>,\n ~vcmp: ('v, 'v) => int,\n) => int" }, { "id": "Belt.Map.Dict.cmp", "kind": "value", "name": "cmp", "docstrings": [], - "signature": "let cmp: (\\n t<'k, 'v, 'id>,\\n t<'k, 'v, 'id>,\\n ~kcmp: cmp<'k, 'id>,\\n ~vcmp: ('v, 'v) => int,\\n) => int" + "signature": "let cmp: (\n t<'k, 'v, 'id>,\n t<'k, 'v, 'id>,\n ~kcmp: cmp<'k, 'id>,\n ~vcmp: ('v, 'v) => int,\n) => int" }, { "id": "Belt.Map.Dict.eqU", "kind": "value", "name": "eqU", "docstrings": [], - "signature": "let eqU: (\\n t<'k, 'a, 'id>,\\n t<'k, 'a, 'id>,\\n ~kcmp: cmp<'k, 'id>,\\n ~veq: (. 'a, 'a) => bool,\\n) => bool" + "signature": "let eqU: (\n t<'k, 'a, 'id>,\n t<'k, 'a, 'id>,\n ~kcmp: cmp<'k, 'id>,\n ~veq: ('a, 'a) => bool,\n) => bool" }, { "id": "Belt.Map.Dict.eq", @@ -2111,14 +2111,14 @@ "docstrings": [ "`eq(m1, m2, cmp)` tests whether the maps `m1` and `m2` are equal, that is,\ncontain equal keys and associate them with equal data. `cmp` is the\nequality predicate used to compare the data associated with the keys." ], - "signature": "let eq: (\\n t<'k, 'a, 'id>,\\n t<'k, 'a, 'id>,\\n ~kcmp: cmp<'k, 'id>,\\n ~veq: ('a, 'a) => bool,\\n) => bool" + "signature": "let eq: (\n t<'k, 'a, 'id>,\n t<'k, 'a, 'id>,\n ~kcmp: cmp<'k, 'id>,\n ~veq: ('a, 'a) => bool,\n) => bool" }, { "id": "Belt.Map.Dict.findFirstByU", "kind": "value", "name": "findFirstByU", "docstrings": [], - "signature": "let findFirstByU: (t<'k, 'v, 'id>, (. 'k, 'v) => bool) => option<('k, 'v)>" + "signature": "let findFirstByU: (t<'k, 'v, 'id>, ('k, 'v) => bool) => option<('k, 'v)>" }, { "id": "Belt.Map.Dict.findFirstBy", @@ -2134,7 +2134,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t<'k, 'a, 'id>, (. 'k, 'a) => unit) => unit" + "signature": "let forEachU: (t<'k, 'a, 'id>, ('k, 'a) => unit) => unit" }, { "id": "Belt.Map.Dict.forEach", @@ -2150,7 +2150,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'k, 'a, 'id>, 'b, (. 'b, 'k, 'a) => 'b) => 'b" + "signature": "let reduceU: (t<'k, 'a, 'id>, 'b, ('b, 'k, 'a) => 'b) => 'b" }, { "id": "Belt.Map.Dict.reduce", @@ -2166,7 +2166,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t<'k, 'a, 'id>, (. 'k, 'a) => bool) => bool" + "signature": "let everyU: (t<'k, 'a, 'id>, ('k, 'a) => bool) => bool" }, { "id": "Belt.Map.Dict.every", @@ -2182,7 +2182,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t<'k, 'a, 'id>, (. 'k, 'a) => bool) => bool" + "signature": "let someU: (t<'k, 'a, 'id>, ('k, 'a) => bool) => bool" }, { "id": "Belt.Map.Dict.some", @@ -2342,7 +2342,7 @@ "kind": "value", "name": "removeMany", "docstrings": [], - "signature": "let removeMany: (\\n t<'a, 'b, 'id>,\\n array<'a>,\\n ~cmp: cmp<'a, 'id>,\\n) => t<'a, 'b, 'id>" + "signature": "let removeMany: (\n t<'a, 'b, 'id>,\n array<'a>,\n ~cmp: cmp<'a, 'id>,\n) => t<'a, 'b, 'id>" }, { "id": "Belt.Map.Dict.set", @@ -2351,28 +2351,28 @@ "docstrings": [ "`set(m, x, y)` returns a map containing the same bindings as `m`, plus a\nbinding of `x` to `y`. If `x` was already bound in `m`, its previous\nbinding disappears." ], - "signature": "let set: (\\n t<'a, 'b, 'id>,\\n 'a,\\n 'b,\\n ~cmp: cmp<'a, 'id>,\\n) => t<'a, 'b, 'id>" + "signature": "let set: (\n t<'a, 'b, 'id>,\n 'a,\n 'b,\n ~cmp: cmp<'a, 'id>,\n) => t<'a, 'b, 'id>" }, { "id": "Belt.Map.Dict.updateU", "kind": "value", "name": "updateU", "docstrings": [], - "signature": "let updateU: (\\n t<'a, 'b, 'id>,\\n 'a,\\n (. option<'b>) => option<'b>,\\n ~cmp: cmp<'a, 'id>,\\n) => t<'a, 'b, 'id>" + "signature": "let updateU: (\n t<'a, 'b, 'id>,\n 'a,\n option<'b> => option<'b>,\n ~cmp: cmp<'a, 'id>,\n) => t<'a, 'b, 'id>" }, { "id": "Belt.Map.Dict.update", "kind": "value", "name": "update", "docstrings": [], - "signature": "let update: (\\n t<'a, 'b, 'id>,\\n 'a,\\n option<'b> => option<'b>,\\n ~cmp: cmp<'a, 'id>,\\n) => t<'a, 'b, 'id>" + "signature": "let update: (\n t<'a, 'b, 'id>,\n 'a,\n option<'b> => option<'b>,\n ~cmp: cmp<'a, 'id>,\n) => t<'a, 'b, 'id>" }, { "id": "Belt.Map.Dict.mergeU", "kind": "value", "name": "mergeU", "docstrings": [], - "signature": "let mergeU: (\\n t<'a, 'b, 'id>,\\n t<'a, 'c, 'id>,\\n (. 'a, option<'b>, option<'c>) => option<'d>,\\n ~cmp: cmp<'a, 'id>,\\n) => t<'a, 'd, 'id>" + "signature": "let mergeU: (\n t<'a, 'b, 'id>,\n t<'a, 'c, 'id>,\n ('a, option<'b>, option<'c>) => option<'d>,\n ~cmp: cmp<'a, 'id>,\n) => t<'a, 'd, 'id>" }, { "id": "Belt.Map.Dict.merge", @@ -2381,21 +2381,21 @@ "docstrings": [ "`merge(m1, m2, f)` computes a map whose keys is a subset of keys of `m1`\nand of `m2`. The presence of each such binding, and the corresponding\nvalue, is determined with the function `f`." ], - "signature": "let merge: (\\n t<'a, 'b, 'id>,\\n t<'a, 'c, 'id>,\\n ('a, option<'b>, option<'c>) => option<'d>,\\n ~cmp: cmp<'a, 'id>,\\n) => t<'a, 'd, 'id>" + "signature": "let merge: (\n t<'a, 'b, 'id>,\n t<'a, 'c, 'id>,\n ('a, option<'b>, option<'c>) => option<'d>,\n ~cmp: cmp<'a, 'id>,\n) => t<'a, 'd, 'id>" }, { "id": "Belt.Map.Dict.mergeMany", "kind": "value", "name": "mergeMany", "docstrings": [], - "signature": "let mergeMany: (\\n t<'a, 'b, 'id>,\\n array<('a, 'b)>,\\n ~cmp: cmp<'a, 'id>,\\n) => t<'a, 'b, 'id>" + "signature": "let mergeMany: (\n t<'a, 'b, 'id>,\n array<('a, 'b)>,\n ~cmp: cmp<'a, 'id>,\n) => t<'a, 'b, 'id>" }, { "id": "Belt.Map.Dict.keepU", "kind": "value", "name": "keepU", "docstrings": [], - "signature": "let keepU: (t<'k, 'a, 'id>, (. 'k, 'a) => bool) => t<'k, 'a, 'id>" + "signature": "let keepU: (t<'k, 'a, 'id>, ('k, 'a) => bool) => t<'k, 'a, 'id>" }, { "id": "Belt.Map.Dict.keep", @@ -2411,7 +2411,7 @@ "kind": "value", "name": "partitionU", "docstrings": [], - "signature": "let partitionU: (\\n t<'k, 'a, 'id>,\\n (. 'k, 'a) => bool,\\n) => (t<'k, 'a, 'id>, t<'k, 'a, 'id>)" + "signature": "let partitionU: (\n t<'k, 'a, 'id>,\n ('k, 'a) => bool,\n) => (t<'k, 'a, 'id>, t<'k, 'a, 'id>)" }, { "id": "Belt.Map.Dict.partition", @@ -2420,7 +2420,7 @@ "docstrings": [ "`partition(m, p)` returns a pair of maps `(m1, m2)`, where `m1` contains\nall the bindings of `s` that satisfy the predicate `p`, and `m2` is the map\nwith all the bindings of `s` that do not satisfy `p`." ], - "signature": "let partition: (\\n t<'k, 'a, 'id>,\\n ('k, 'a) => bool,\\n) => (t<'k, 'a, 'id>, t<'k, 'a, 'id>)" + "signature": "let partition: (\n t<'k, 'a, 'id>,\n ('k, 'a) => bool,\n) => (t<'k, 'a, 'id>, t<'k, 'a, 'id>)" }, { "id": "Belt.Map.Dict.split", @@ -2429,14 +2429,14 @@ "docstrings": [ "`split(x, m)` returns a triple `(l, data, r)`, where `l` is the map with\nall the bindings of `m` whose key is strictly less than `x`; `r` is the map\nwith all the bindings of `m` whose key is strictly greater than `x`; `data`\nis `None` if `m` contains no binding for `x`, or `Some(v)` if `m` binds `v`\nto `x`." ], - "signature": "let split: (\\n t<'a, 'b, 'id>,\\n 'a,\\n ~cmp: cmp<'a, 'id>,\\n) => ((t<'a, 'b, 'id>, t<'a, 'b, 'id>), option<'b>)" + "signature": "let split: (\n t<'a, 'b, 'id>,\n 'a,\n ~cmp: cmp<'a, 'id>,\n) => ((t<'a, 'b, 'id>, t<'a, 'b, 'id>), option<'b>)" }, { "id": "Belt.Map.Dict.mapU", "kind": "value", "name": "mapU", "docstrings": [], - "signature": "let mapU: (t<'k, 'a, 'id>, (. 'a) => 'b) => t<'k, 'b, 'id>" + "signature": "let mapU: (t<'k, 'a, 'id>, 'a => 'b) => t<'k, 'b, 'id>" }, { "id": "Belt.Map.Dict.map", @@ -2452,7 +2452,7 @@ "kind": "value", "name": "mapWithKeyU", "docstrings": [], - "signature": "let mapWithKeyU: (t<'k, 'a, 'id>, (. 'k, 'a) => 'b) => t<'k, 'b, 'id>" + "signature": "let mapWithKeyU: (t<'k, 'a, 'id>, ('k, 'a) => 'b) => t<'k, 'b, 'id>" }, { "id": "Belt.Map.Dict.mapWithKey", @@ -2510,7 +2510,7 @@ "kind": "value", "name": "cmpU", "docstrings": [], - "signature": "let cmpU: (t<'v>, t<'v>, (. 'v, 'v) => int) => int" + "signature": "let cmpU: (t<'v>, t<'v>, ('v, 'v) => int) => int" }, { "id": "Belt.Map.String.cmp", @@ -2524,7 +2524,7 @@ "kind": "value", "name": "eqU", "docstrings": [], - "signature": "let eqU: (t<'v>, t<'v>, (. 'v, 'v) => bool) => bool" + "signature": "let eqU: (t<'v>, t<'v>, ('v, 'v) => bool) => bool" }, { "id": "Belt.Map.String.eq", @@ -2540,7 +2540,7 @@ "kind": "value", "name": "findFirstByU", "docstrings": [], - "signature": "let findFirstByU: (t<'v>, (. key, 'v) => bool) => option<(key, 'v)>" + "signature": "let findFirstByU: (t<'v>, (key, 'v) => bool) => option<(key, 'v)>" }, { "id": "Belt.Map.String.findFirstBy", @@ -2556,7 +2556,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t<'v>, (. key, 'v) => unit) => unit" + "signature": "let forEachU: (t<'v>, (key, 'v) => unit) => unit" }, { "id": "Belt.Map.String.forEach", @@ -2572,7 +2572,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'v>, 'v2, (. 'v2, key, 'v) => 'v2) => 'v2" + "signature": "let reduceU: (t<'v>, 'v2, ('v2, key, 'v) => 'v2) => 'v2" }, { "id": "Belt.Map.String.reduce", @@ -2588,7 +2588,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t<'v>, (. key, 'v) => bool) => bool" + "signature": "let everyU: (t<'v>, (key, 'v) => bool) => bool" }, { "id": "Belt.Map.String.every", @@ -2604,7 +2604,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t<'v>, (. key, 'v) => bool) => bool" + "signature": "let someU: (t<'v>, (key, 'v) => bool) => bool" }, { "id": "Belt.Map.String.some", @@ -2782,7 +2782,7 @@ "kind": "value", "name": "updateU", "docstrings": [], - "signature": "let updateU: (t<'v>, key, (. option<'v>) => option<'v>) => t<'v>" + "signature": "let updateU: (t<'v>, key, option<'v> => option<'v>) => t<'v>" }, { "id": "Belt.Map.String.update", @@ -2796,7 +2796,7 @@ "kind": "value", "name": "mergeU", "docstrings": [], - "signature": "let mergeU: (\\n t<'v>,\\n t<'v2>,\\n (. key, option<'v>, option<'v2>) => option<'c>,\\n) => t<'c>" + "signature": "let mergeU: (\n t<'v>,\n t<'v2>,\n (key, option<'v>, option<'v2>) => option<'c>,\n) => t<'c>" }, { "id": "Belt.Map.String.merge", @@ -2805,7 +2805,7 @@ "docstrings": [ "`merge(m1, m2, f)` computes a map whose keys is a subset of keys of `m1`\nand of `m2`. The presence of each such binding, and the corresponding\nvalue, is determined with the function `f`." ], - "signature": "let merge: (\\n t<'v>,\\n t<'v2>,\\n (key, option<'v>, option<'v2>) => option<'c>,\\n) => t<'c>" + "signature": "let merge: (\n t<'v>,\n t<'v2>,\n (key, option<'v>, option<'v2>) => option<'c>,\n) => t<'c>" }, { "id": "Belt.Map.String.mergeMany", @@ -2819,7 +2819,7 @@ "kind": "value", "name": "keepU", "docstrings": [], - "signature": "let keepU: (t<'v>, (. key, 'v) => bool) => t<'v>" + "signature": "let keepU: (t<'v>, (key, 'v) => bool) => t<'v>" }, { "id": "Belt.Map.String.keep", @@ -2835,7 +2835,7 @@ "kind": "value", "name": "partitionU", "docstrings": [], - "signature": "let partitionU: (t<'v>, (. key, 'v) => bool) => (t<'v>, t<'v>)" + "signature": "let partitionU: (t<'v>, (key, 'v) => bool) => (t<'v>, t<'v>)" }, { "id": "Belt.Map.String.partition", @@ -2860,7 +2860,7 @@ "kind": "value", "name": "mapU", "docstrings": [], - "signature": "let mapU: (t<'v>, (. 'v) => 'v2) => t<'v2>" + "signature": "let mapU: (t<'v>, 'v => 'v2) => t<'v2>" }, { "id": "Belt.Map.String.map", @@ -2876,7 +2876,7 @@ "kind": "value", "name": "mapWithKeyU", "docstrings": [], - "signature": "let mapWithKeyU: (t<'v>, (. key, 'v) => 'v2) => t<'v2>" + "signature": "let mapWithKeyU: (t<'v>, (key, 'v) => 'v2) => t<'v2>" }, { "id": "Belt.Map.String.mapWithKey", @@ -2936,7 +2936,7 @@ "kind": "value", "name": "cmpU", "docstrings": [], - "signature": "let cmpU: (t<'v>, t<'v>, (. 'v, 'v) => int) => int" + "signature": "let cmpU: (t<'v>, t<'v>, ('v, 'v) => int) => int" }, { "id": "Belt.Map.Int.cmp", @@ -2950,7 +2950,7 @@ "kind": "value", "name": "eqU", "docstrings": [], - "signature": "let eqU: (t<'v>, t<'v>, (. 'v, 'v) => bool) => bool" + "signature": "let eqU: (t<'v>, t<'v>, ('v, 'v) => bool) => bool" }, { "id": "Belt.Map.Int.eq", @@ -2966,7 +2966,7 @@ "kind": "value", "name": "findFirstByU", "docstrings": [], - "signature": "let findFirstByU: (t<'v>, (. key, 'v) => bool) => option<(key, 'v)>" + "signature": "let findFirstByU: (t<'v>, (key, 'v) => bool) => option<(key, 'v)>" }, { "id": "Belt.Map.Int.findFirstBy", @@ -2982,7 +2982,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t<'v>, (. key, 'v) => unit) => unit" + "signature": "let forEachU: (t<'v>, (key, 'v) => unit) => unit" }, { "id": "Belt.Map.Int.forEach", @@ -2998,7 +2998,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'v>, 'v2, (. 'v2, key, 'v) => 'v2) => 'v2" + "signature": "let reduceU: (t<'v>, 'v2, ('v2, key, 'v) => 'v2) => 'v2" }, { "id": "Belt.Map.Int.reduce", @@ -3014,7 +3014,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t<'v>, (. key, 'v) => bool) => bool" + "signature": "let everyU: (t<'v>, (key, 'v) => bool) => bool" }, { "id": "Belt.Map.Int.every", @@ -3030,7 +3030,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t<'v>, (. key, 'v) => bool) => bool" + "signature": "let someU: (t<'v>, (key, 'v) => bool) => bool" }, { "id": "Belt.Map.Int.some", @@ -3208,7 +3208,7 @@ "kind": "value", "name": "updateU", "docstrings": [], - "signature": "let updateU: (t<'v>, key, (. option<'v>) => option<'v>) => t<'v>" + "signature": "let updateU: (t<'v>, key, option<'v> => option<'v>) => t<'v>" }, { "id": "Belt.Map.Int.update", @@ -3222,7 +3222,7 @@ "kind": "value", "name": "mergeU", "docstrings": [], - "signature": "let mergeU: (\\n t<'v>,\\n t<'v2>,\\n (. key, option<'v>, option<'v2>) => option<'c>,\\n) => t<'c>" + "signature": "let mergeU: (\n t<'v>,\n t<'v2>,\n (key, option<'v>, option<'v2>) => option<'c>,\n) => t<'c>" }, { "id": "Belt.Map.Int.merge", @@ -3231,7 +3231,7 @@ "docstrings": [ "`merge(m1, m2, f)` computes a map whose keys is a subset of keys of `m1`\nand of `m2`. The presence of each such binding, and the corresponding\nvalue, is determined with the function `f`." ], - "signature": "let merge: (\\n t<'v>,\\n t<'v2>,\\n (key, option<'v>, option<'v2>) => option<'c>,\\n) => t<'c>" + "signature": "let merge: (\n t<'v>,\n t<'v2>,\n (key, option<'v>, option<'v2>) => option<'c>,\n) => t<'c>" }, { "id": "Belt.Map.Int.mergeMany", @@ -3245,7 +3245,7 @@ "kind": "value", "name": "keepU", "docstrings": [], - "signature": "let keepU: (t<'v>, (. key, 'v) => bool) => t<'v>" + "signature": "let keepU: (t<'v>, (key, 'v) => bool) => t<'v>" }, { "id": "Belt.Map.Int.keep", @@ -3261,7 +3261,7 @@ "kind": "value", "name": "partitionU", "docstrings": [], - "signature": "let partitionU: (t<'v>, (. key, 'v) => bool) => (t<'v>, t<'v>)" + "signature": "let partitionU: (t<'v>, (key, 'v) => bool) => (t<'v>, t<'v>)" }, { "id": "Belt.Map.Int.partition", @@ -3286,7 +3286,7 @@ "kind": "value", "name": "mapU", "docstrings": [], - "signature": "let mapU: (t<'v>, (. 'v) => 'v2) => t<'v2>" + "signature": "let mapU: (t<'v>, 'v => 'v2) => t<'v2>" }, { "id": "Belt.Map.Int.map", @@ -3302,7 +3302,7 @@ "kind": "value", "name": "mapWithKeyU", "docstrings": [], - "signature": "let mapWithKeyU: (t<'v>, (. key, 'v) => 'v2) => t<'v2>" + "signature": "let mapWithKeyU: (t<'v>, (key, 'v) => 'v2) => t<'v2>" }, { "id": "Belt.Map.Int.mapWithKey", @@ -3391,7 +3391,7 @@ "docstrings": [ "Adds element to set. If element existed in set, value is unchanged.\n\n## Examples\n\n```rescript\nmodule IntCmp = Belt.Id.MakeComparable({\n type t = int\n let cmp = Pervasives.compare\n})\n\nlet s0 = Belt.Set.Dict.empty\nlet s1 = s0->Belt.Set.Dict.add(1, ~cmp=IntCmp.cmp)\nlet s2 = s1->Belt.Set.Dict.add(2, ~cmp=IntCmp.cmp)\nlet s3 = s2->Belt.Set.Dict.add(2, ~cmp=IntCmp.cmp)\ns0->Belt.Set.Dict.toArray /* [] */\ns1->Belt.Set.Dict.toArray /* [1] */\ns2->Belt.Set.Dict.toArray /* [1, 2] */\ns3->Belt.Set.Dict.toArray /* [1,2 ] */\ns2 == s3 /* true */\n```" ], - "signature": "let add: (\\n t<'value, 'id>,\\n 'value,\\n ~cmp: cmp<'value, 'id>,\\n) => t<'value, 'id>" + "signature": "let add: (\n t<'value, 'id>,\n 'value,\n ~cmp: cmp<'value, 'id>,\n) => t<'value, 'id>" }, { "id": "Belt.Set.Dict.mergeMany", @@ -3400,7 +3400,7 @@ "docstrings": [ "Adds each element of array to set. Unlike [add](#add), the reference of return value might be changed even if all values in array already exist in set\n\n## Examples\n\n```rescript\nmodule IntCmp = Belt.Id.MakeComparable({\n type t = int\n let cmp = Pervasives.compare\n})\n\nlet set = Belt.Set.Dict.empty\n\nlet newSet = set->Belt.Set.Dict.mergeMany([5, 4, 3, 2, 1], ~cmp=IntCmp.cmp)\nnewSet->Belt.Set.Dict.toArray /* [1, 2, 3, 4, 5] */\n```" ], - "signature": "let mergeMany: (\\n t<'value, 'id>,\\n array<'value>,\\n ~cmp: cmp<'value, 'id>,\\n) => t<'value, 'id>" + "signature": "let mergeMany: (\n t<'value, 'id>,\n array<'value>,\n ~cmp: cmp<'value, 'id>,\n) => t<'value, 'id>" }, { "id": "Belt.Set.Dict.remove", @@ -3409,7 +3409,7 @@ "docstrings": [ "Removes element from set. If element did not exist in set, value is unchanged.\n\n## Examples\n\n```rescript\nmodule IntCmp = Belt.Id.MakeComparable({\n type t = int\n let cmp = Pervasives.compare\n})\n\nlet s0 = Belt.Set.Dict.fromArray([2, 3, 1, 4, 5], ~cmp=IntCmp.cmp)\nlet s1 = s0->Belt.Set.Dict.remove(1, ~cmp=IntCmp.cmp)\nlet s2 = s1->Belt.Set.Dict.remove(3, ~cmp=IntCmp.cmp)\nlet s3 = s2->Belt.Set.Dict.remove(3, ~cmp=IntCmp.cmp)\n\ns1->Belt.Set.Dict.toArray /* [2,3,4,5] */\ns2->Belt.Set.Dict.toArray /* [2,4,5] */\ns2 == s3 /* true */\n```" ], - "signature": "let remove: (\\n t<'value, 'id>,\\n 'value,\\n ~cmp: cmp<'value, 'id>,\\n) => t<'value, 'id>" + "signature": "let remove: (\n t<'value, 'id>,\n 'value,\n ~cmp: cmp<'value, 'id>,\n) => t<'value, 'id>" }, { "id": "Belt.Set.Dict.removeMany", @@ -3418,7 +3418,7 @@ "docstrings": [ "Removes each element of array from set. Unlike [remove](#remove), the reference of return value might be changed even if any values in array not existed in set.\n\n## Examples\n\n```rescript\nmodule IntCmp = Belt.Id.MakeComparable({\n type t = int\n let cmp = Pervasives.compare\n})\n\nlet set = Belt.Set.Dict.fromArray([1, 2, 3, 4], ~cmp=IntCmp.cmp)\n\nlet newSet = set->Belt.Set.Dict.removeMany([5, 4, 3, 2, 1], ~cmp=IntCmp.cmp)\nnewSet->Belt.Set.Dict.toArray /* [] */\n```" ], - "signature": "let removeMany: (\\n t<'value, 'id>,\\n array<'value>,\\n ~cmp: cmp<'value, 'id>,\\n) => t<'value, 'id>" + "signature": "let removeMany: (\n t<'value, 'id>,\n array<'value>,\n ~cmp: cmp<'value, 'id>,\n) => t<'value, 'id>" }, { "id": "Belt.Set.Dict.union", @@ -3427,7 +3427,7 @@ "docstrings": [ "Returns union of two sets.\n\n## Examples\n\n```rescript\nmodule IntCmp = Belt.Id.MakeComparable({\n type t = int\n let cmp = Pervasives.compare\n})\n\nlet s0 = Belt.Set.Dict.fromArray([5, 2, 3, 5, 6], ~cmp=IntCmp.cmp)\nlet s1 = Belt.Set.Dict.fromArray([5, 2, 3, 1, 5, 4], ~cmp=IntCmp.cmp)\nlet union = Belt.Set.Dict.union(s0, s1, ~cmp=IntCmp.cmp)\nunion->Belt.Set.Dict.toArray /* [1,2,3,4,5,6] */\n```" ], - "signature": "let union: (\\n t<'value, 'id>,\\n t<'value, 'id>,\\n ~cmp: cmp<'value, 'id>,\\n) => t<'value, 'id>" + "signature": "let union: (\n t<'value, 'id>,\n t<'value, 'id>,\n ~cmp: cmp<'value, 'id>,\n) => t<'value, 'id>" }, { "id": "Belt.Set.Dict.intersect", @@ -3436,7 +3436,7 @@ "docstrings": [ "Returns intersection of two sets.\n\n## Examples\n\n```rescript\nmodule IntCmp = Belt.Id.MakeComparable({\n type t = int\n let cmp = Pervasives.compare\n})\n\nlet s0 = Belt.Set.Dict.fromArray([5, 2, 3, 5, 6], ~cmp=IntCmp.cmp)\nlet s1 = Belt.Set.Dict.fromArray([5, 2, 3, 1, 5, 4], ~cmp=IntCmp.cmp)\nlet intersect = Belt.Set.Dict.intersect(s0, s1, ~cmp=IntCmp.cmp)\nintersect->Belt.Set.Dict.toArray /* [2,3,5] */\n```" ], - "signature": "let intersect: (\\n t<'value, 'id>,\\n t<'value, 'id>,\\n ~cmp: cmp<'value, 'id>,\\n) => t<'value, 'id>" + "signature": "let intersect: (\n t<'value, 'id>,\n t<'value, 'id>,\n ~cmp: cmp<'value, 'id>,\n) => t<'value, 'id>" }, { "id": "Belt.Set.Dict.diff", @@ -3445,7 +3445,7 @@ "docstrings": [ "Returns elements from first set, not existing in second set.\n\n## Examples\n\n```rescript\nmodule IntCmp = Belt.Id.MakeComparable({\n type t = int\n let cmp = Pervasives.compare\n})\n\nlet s0 = Belt.Set.Dict.fromArray([5, 2, 3, 5, 6], ~cmp=IntCmp.cmp)\nlet s1 = Belt.Set.Dict.fromArray([5, 2, 3, 1, 5, 4], ~cmp=IntCmp.cmp)\n\nlet diff1 = Belt.Set.Dict.diff(s0, s1, ~cmp=IntCmp.cmp)\nlet diff2 = Belt.Set.Dict.diff(s1, s0, ~cmp=IntCmp.cmp)\n\ndiff1->Belt.Set.Dict.toArray /* [6] */\ndiff2->Belt.Set.Dict.toArray /* [1,4] */\n```" ], - "signature": "let diff: (\\n t<'value, 'id>,\\n t<'value, 'id>,\\n ~cmp: cmp<'value, 'id>,\\n) => t<'value, 'id>" + "signature": "let diff: (\n t<'value, 'id>,\n t<'value, 'id>,\n ~cmp: cmp<'value, 'id>,\n) => t<'value, 'id>" }, { "id": "Belt.Set.Dict.subset", @@ -3454,7 +3454,7 @@ "docstrings": [ "Checks if second set is subset of first set.\n\n## Examples\n\n```rescript\nmodule IntCmp = Belt.Id.MakeComparable({\n type t = int\n let cmp = Pervasives.compare\n})\n\nlet s0 = Belt.Set.Dict.fromArray([5, 2, 3, 5, 6], ~cmp=IntCmp.cmp)\nlet s1 = Belt.Set.Dict.fromArray([5, 2, 3, 1, 5, 4], ~cmp=IntCmp.cmp)\nlet s2 = Belt.Set.Dict.intersect(s0, s1, ~cmp=IntCmp.cmp)\nBelt.Set.Dict.subset(s2, s0, ~cmp=IntCmp.cmp) /* true */\nBelt.Set.Dict.subset(s2, s1, ~cmp=IntCmp.cmp) /* true */\nBelt.Set.Dict.subset(s1, s0, ~cmp=IntCmp.cmp) /* false */\n```" ], - "signature": "let subset: (\\n t<'value, 'id>,\\n t<'value, 'id>,\\n ~cmp: cmp<'value, 'id>,\\n) => bool" + "signature": "let subset: (\n t<'value, 'id>,\n t<'value, 'id>,\n ~cmp: cmp<'value, 'id>,\n) => bool" }, { "id": "Belt.Set.Dict.cmp", @@ -3463,7 +3463,7 @@ "docstrings": [ "Total ordering between sets. Can be used as the ordering function for doing sets\nof sets. It compares size first and then iterates over each element following the\norder of elements." ], - "signature": "let cmp: (\\n t<'value, 'id>,\\n t<'value, 'id>,\\n ~cmp: cmp<'value, 'id>,\\n) => int" + "signature": "let cmp: (\n t<'value, 'id>,\n t<'value, 'id>,\n ~cmp: cmp<'value, 'id>,\n) => int" }, { "id": "Belt.Set.Dict.eq", @@ -3472,7 +3472,7 @@ "docstrings": [ "Checks if two sets are equal.\n\n## Examples\n\n```rescript\nmodule IntCmp = Belt.Id.MakeComparable({\n type t = int\n let cmp = Pervasives.compare\n})\n\nlet s0 = Belt.Set.Dict.fromArray([5, 2, 3], ~cmp=IntCmp.cmp)\nlet s1 = Belt.Set.Dict.fromArray([3, 2, 5], ~cmp=IntCmp.cmp)\n\nBelt.Set.Dict.eq(s0, s1, ~cmp=IntCmp.cmp) /* true */\n```" ], - "signature": "let eq: (\\n t<'value, 'id>,\\n t<'value, 'id>,\\n ~cmp: cmp<'value, 'id>,\\n) => bool" + "signature": "let eq: (\n t<'value, 'id>,\n t<'value, 'id>,\n ~cmp: cmp<'value, 'id>,\n) => bool" }, { "id": "Belt.Set.Dict.forEachU", @@ -3481,7 +3481,7 @@ "docstrings": [ "Same as [forEach](##forEach) but takes uncurried functon." ], - "signature": "let forEachU: (t<'value, 'id>, (. 'value) => unit) => unit" + "signature": "let forEachU: (t<'value, 'id>, 'value => unit) => unit" }, { "id": "Belt.Set.Dict.forEach", @@ -3497,7 +3497,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'value, 'id>, 'a, (. 'a, 'value) => 'a) => 'a" + "signature": "let reduceU: (t<'value, 'id>, 'a, ('a, 'value) => 'a) => 'a" }, { "id": "Belt.Set.Dict.reduce", @@ -3513,7 +3513,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t<'value, 'id>, (. 'value) => bool) => bool" + "signature": "let everyU: (t<'value, 'id>, 'value => bool) => bool" }, { "id": "Belt.Set.Dict.every", @@ -3529,7 +3529,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t<'value, 'id>, (. 'value) => bool) => bool" + "signature": "let someU: (t<'value, 'id>, 'value => bool) => bool" }, { "id": "Belt.Set.Dict.some", @@ -3545,7 +3545,7 @@ "kind": "value", "name": "keepU", "docstrings": [], - "signature": "let keepU: (t<'value, 'id>, (. 'value) => bool) => t<'value, 'id>" + "signature": "let keepU: (t<'value, 'id>, 'value => bool) => t<'value, 'id>" }, { "id": "Belt.Set.Dict.keep", @@ -3561,7 +3561,7 @@ "kind": "value", "name": "partitionU", "docstrings": [], - "signature": "let partitionU: (\\n t<'value, 'id>,\\n (. 'value) => bool,\\n) => (t<'value, 'id>, t<'value, 'id>)" + "signature": "let partitionU: (\n t<'value, 'id>,\n 'value => bool,\n) => (t<'value, 'id>, t<'value, 'id>)" }, { "id": "Belt.Set.Dict.partition", @@ -3570,7 +3570,7 @@ "docstrings": [ "Returns a pair of sets, where first is the set of all the elements of set that satisfy the predicate, and second is the set of all the elements of set that do not satisfy the predicate.\n\n## Examples\n\n```rescript\nmodule IntCmp = Belt.Id.MakeComparable({\n type t = int\n let cmp = Pervasives.compare\n})\n\nlet isOdd = x => mod(x, 2) != 0\n\nlet s0 = Belt.Set.Dict.fromArray([1, 2, 3, 4, 5], ~cmp=IntCmp.cmp)\nlet (s1, s2) = s0->Belt.Set.Dict.partition(isOdd)\n\ns1->Belt.Set.Dict.toArray /* [1,3,5] */\ns2->Belt.Set.Dict.toArray /* [2,4] */\n```" ], - "signature": "let partition: (\\n t<'value, 'id>,\\n 'value => bool,\\n) => (t<'value, 'id>, t<'value, 'id>)" + "signature": "let partition: (\n t<'value, 'id>,\n 'value => bool,\n) => (t<'value, 'id>, t<'value, 'id>)" }, { "id": "Belt.Set.Dict.size", @@ -3642,7 +3642,7 @@ "docstrings": [ "Returns the reference of the value which is equivalent to value using the comparator\nspecifiecd by this collection. Returns `None` if element does not exist.\n\n## Examples\n\n```rescript\nmodule IntCmp = Belt.Id.MakeComparable({\n type t = int\n let cmp = Pervasives.compare\n})\n\nlet s0 = Belt.Set.Dict.fromArray([1, 2, 3, 4, 5], ~cmp=IntCmp.cmp)\n\ns0->Belt.Set.Dict.get(3, ~cmp=IntCmp.cmp) /* Some(3) */\ns0->Belt.Set.Dict.get(20, ~cmp=IntCmp.cmp) /* None */\n```" ], - "signature": "let get: (\\n t<'value, 'id>,\\n 'value,\\n ~cmp: cmp<'value, 'id>,\\n) => option<'value>" + "signature": "let get: (\n t<'value, 'id>,\n 'value,\n ~cmp: cmp<'value, 'id>,\n) => option<'value>" }, { "id": "Belt.Set.Dict.getUndefined", @@ -3651,7 +3651,7 @@ "docstrings": [ "Same as [get](#get) but returns `undefined` when element does not exist." ], - "signature": "let getUndefined: (\\n t<'value, 'id>,\\n 'value,\\n ~cmp: cmp<'value, 'id>,\\n) => Js.undefined<'value>" + "signature": "let getUndefined: (\n t<'value, 'id>,\n 'value,\n ~cmp: cmp<'value, 'id>,\n) => Js.undefined<'value>" }, { "id": "Belt.Set.Dict.getExn", @@ -3669,7 +3669,7 @@ "docstrings": [ "Returns a tuple `((smaller, larger), present)`, `present` is true when element exist in set.\n\n## Examples\n\n```rescript\nmodule IntCmp = Belt.Id.MakeComparable({\n type t = int\n let cmp = Pervasives.compare\n})\n\nlet s0 = Belt.Set.Dict.fromArray([1, 2, 3, 4, 5], ~cmp=IntCmp.cmp)\n\nlet ((smaller, larger), present) = s0->Belt.Set.Dict.split(3, ~cmp=IntCmp.cmp)\n\npresent /* true */\nsmaller->Belt.Set.Dict.toArray /* [1,2] */\nlarger->Belt.Set.Dict.toArray /* [4,5] */\n```" ], - "signature": "let split: (\\n t<'value, 'id>,\\n 'value,\\n ~cmp: cmp<'value, 'id>,\\n) => ((t<'value, 'id>, t<'value, 'id>), bool)" + "signature": "let split: (\n t<'value, 'id>,\n 'value,\n ~cmp: cmp<'value, 'id>,\n) => ((t<'value, 'id>, t<'value, 'id>), bool)" }, { "id": "Belt.Set.Dict.checkInvariantInternal", @@ -3828,7 +3828,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t, (. value) => unit) => unit" + "signature": "let forEachU: (t, value => unit) => unit" }, { "id": "Belt.Set.String.forEach", @@ -3844,7 +3844,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t, 'a, (. 'a, value) => 'a) => 'a" + "signature": "let reduceU: (t, 'a, ('a, value) => 'a) => 'a" }, { "id": "Belt.Set.String.reduce", @@ -3860,7 +3860,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t, (. value) => bool) => bool" + "signature": "let everyU: (t, value => bool) => bool" }, { "id": "Belt.Set.String.every", @@ -3876,7 +3876,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t, (. value) => bool) => bool" + "signature": "let someU: (t, value => bool) => bool" }, { "id": "Belt.Set.String.some", @@ -3892,7 +3892,7 @@ "kind": "value", "name": "keepU", "docstrings": [], - "signature": "let keepU: (t, (. value) => bool) => t" + "signature": "let keepU: (t, value => bool) => t" }, { "id": "Belt.Set.String.keep", @@ -3908,7 +3908,7 @@ "kind": "value", "name": "partitionU", "docstrings": [], - "signature": "let partitionU: (t, (. value) => bool) => (t, t)" + "signature": "let partitionU: (t, value => bool) => (t, t)" }, { "id": "Belt.Set.String.partition", @@ -4157,7 +4157,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t, (. value) => unit) => unit" + "signature": "let forEachU: (t, value => unit) => unit" }, { "id": "Belt.Set.Int.forEach", @@ -4173,7 +4173,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t, 'a, (. 'a, value) => 'a) => 'a" + "signature": "let reduceU: (t, 'a, ('a, value) => 'a) => 'a" }, { "id": "Belt.Set.Int.reduce", @@ -4189,7 +4189,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t, (. value) => bool) => bool" + "signature": "let everyU: (t, value => bool) => bool" }, { "id": "Belt.Set.Int.every", @@ -4205,7 +4205,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t, (. value) => bool) => bool" + "signature": "let someU: (t, value => bool) => bool" }, { "id": "Belt.Set.Int.some", @@ -4221,7 +4221,7 @@ "kind": "value", "name": "keepU", "docstrings": [], - "signature": "let keepU: (t, (. value) => bool) => t" + "signature": "let keepU: (t, value => bool) => t" }, { "id": "Belt.Set.Int.keep", @@ -4237,7 +4237,7 @@ "kind": "value", "name": "partitionU", "docstrings": [], - "signature": "let partitionU: (t, (. value) => bool) => (t, t)" + "signature": "let partitionU: (t, value => bool) => (t, t)" }, { "id": "Belt.Set.Int.partition", @@ -4407,21 +4407,21 @@ "docstrings": [ "`union(src, src1ofs, src1len, src2, src2ofs, src2len, dst, dstofs, cmp)` assume\n`src` and `src2` is strictly sorted. for equivalent elements, it is picked from\n`src` also assume that `dst` is large enough to store all elements" ], - "signature": "let union: (\\n array,\\n int,\\n int,\\n array,\\n int,\\n int,\\n array,\\n int,\\n) => int" + "signature": "let union: (\n array,\n int,\n int,\n array,\n int,\n int,\n array,\n int,\n) => int" }, { "id": "Belt.SortArray.String.intersect", "kind": "value", "name": "intersect", "docstrings": [], - "signature": "let intersect: (\\n array,\\n int,\\n int,\\n array,\\n int,\\n int,\\n array,\\n int,\\n) => int" + "signature": "let intersect: (\n array,\n int,\n int,\n array,\n int,\n int,\n array,\n int,\n) => int" }, { "id": "Belt.SortArray.String.diff", "kind": "value", "name": "diff", "docstrings": [], - "signature": "let diff: (\\n array,\\n int,\\n int,\\n array,\\n int,\\n int,\\n array,\\n int,\\n) => int" + "signature": "let diff: (\n array,\n int,\n int,\n array,\n int,\n int,\n array,\n int,\n) => int" } ] }, @@ -4492,21 +4492,21 @@ "docstrings": [ "`union(src, src1ofs, src1len, src2, src2ofs, src2len, dst, dstofs, cmp)` assume\n`src` and `src2` is strictly sorted. for equivalent elements, it is picked from\n`src` also assume that `dst` is large enough to store all elements" ], - "signature": "let union: (\\n array,\\n int,\\n int,\\n array,\\n int,\\n int,\\n array,\\n int,\\n) => int" + "signature": "let union: (\n array,\n int,\n int,\n array,\n int,\n int,\n array,\n int,\n) => int" }, { "id": "Belt.SortArray.Int.intersect", "kind": "value", "name": "intersect", "docstrings": [], - "signature": "let intersect: (\\n array,\\n int,\\n int,\\n array,\\n int,\\n int,\\n array,\\n int,\\n) => int" + "signature": "let intersect: (\n array,\n int,\n int,\n array,\n int,\n int,\n array,\n int,\n) => int" }, { "id": "Belt.SortArray.Int.diff", "kind": "value", "name": "diff", "docstrings": [], - "signature": "let diff: (\\n array,\\n int,\\n int,\\n array,\\n int,\\n int,\\n array,\\n int,\\n) => int" + "signature": "let diff: (\n array,\n int,\n int,\n array,\n int,\n int,\n array,\n int,\n) => int" } ] }, @@ -4829,7 +4829,7 @@ "kind": "value", "name": "mapWithDefaultU", "docstrings": [], - "signature": "let mapWithDefaultU: (t<'a, 'c>, 'b, (. 'a) => 'b) => 'b" + "signature": "let mapWithDefaultU: (t<'a, 'c>, 'b, 'a => 'b) => 'b" }, { "id": "Belt.Result.mapWithDefault", @@ -4845,7 +4845,7 @@ "kind": "value", "name": "mapU", "docstrings": [], - "signature": "let mapU: (t<'a, 'c>, (. 'a) => 'b) => t<'b, 'c>" + "signature": "let mapU: (t<'a, 'c>, 'a => 'b) => t<'b, 'c>" }, { "id": "Belt.Result.map", @@ -4861,7 +4861,7 @@ "kind": "value", "name": "flatMapU", "docstrings": [], - "signature": "let flatMapU: (t<'a, 'c>, (. 'a) => t<'b, 'c>) => t<'b, 'c>" + "signature": "let flatMapU: (t<'a, 'c>, 'a => t<'b, 'c>) => t<'b, 'c>" }, { "id": "Belt.Result.flatMap", @@ -4904,7 +4904,7 @@ "kind": "value", "name": "eqU", "docstrings": [], - "signature": "let eqU: (t<'a, 'c>, t<'b, 'd>, (. 'a, 'b) => bool) => bool" + "signature": "let eqU: (t<'a, 'c>, t<'b, 'd>, ('a, 'b) => bool) => bool" }, { "id": "Belt.Result.eq", @@ -4920,7 +4920,7 @@ "kind": "value", "name": "cmpU", "docstrings": [], - "signature": "let cmpU: (t<'a, 'c>, t<'b, 'd>, (. 'a, 'b) => int) => int" + "signature": "let cmpU: (t<'a, 'c>, t<'b, 'd>, ('a, 'b) => int) => int" }, { "id": "Belt.Result.cmp", @@ -4948,7 +4948,7 @@ "docstrings": [ "Uncurried version of `keep`" ], - "signature": "let keepU: (option<'a>, (. 'a) => bool) => option<'a>" + "signature": "let keepU: (option<'a>, 'a => bool) => option<'a>" }, { "id": "Belt.Option.keep", @@ -4966,7 +4966,7 @@ "docstrings": [ "Uncurried version of `forEach`" ], - "signature": "let forEachU: (option<'a>, (. 'a) => unit) => unit" + "signature": "let forEachU: (option<'a>, 'a => unit) => unit" }, { "id": "Belt.Option.forEach", @@ -5002,7 +5002,7 @@ "docstrings": [ "Uncurried version of `mapWithDefault`" ], - "signature": "let mapWithDefaultU: (option<'a>, 'b, (. 'a) => 'b) => 'b" + "signature": "let mapWithDefaultU: (option<'a>, 'b, 'a => 'b) => 'b" }, { "id": "Belt.Option.mapWithDefault", @@ -5020,7 +5020,7 @@ "docstrings": [ "Uncurried version of `map`" ], - "signature": "let mapU: (option<'a>, (. 'a) => 'b) => option<'b>" + "signature": "let mapU: (option<'a>, 'a => 'b) => option<'b>" }, { "id": "Belt.Option.map", @@ -5038,7 +5038,7 @@ "docstrings": [ "Uncurried version of `flatMap`" ], - "signature": "let flatMapU: (option<'a>, (. 'a) => option<'b>) => option<'b>" + "signature": "let flatMapU: (option<'a>, 'a => option<'b>) => option<'b>" }, { "id": "Belt.Option.flatMap", @@ -5092,7 +5092,7 @@ "docstrings": [ "Uncurried version of `eq`" ], - "signature": "let eqU: (option<'a>, option<'b>, (. 'a, 'b) => bool) => bool" + "signature": "let eqU: (option<'a>, option<'b>, ('a, 'b) => bool) => bool" }, { "id": "Belt.Option.eq", @@ -5110,7 +5110,7 @@ "docstrings": [ "Uncurried version of `cmp`" ], - "signature": "let cmpU: (option<'a>, option<'b>, (. 'a, 'b) => int) => int" + "signature": "let cmpU: (option<'a>, option<'b>, ('a, 'b) => int) => int" }, { "id": "Belt.Option.cmp", @@ -5228,7 +5228,7 @@ "docstrings": [ "Same as [forEach](#forEach) but takes uncurried function." ], - "signature": "let forEachU: (t<'key, 'value, 'id>, (. 'key, 'value) => unit) => unit" + "signature": "let forEachU: (t<'key, 'value, 'id>, ('key, 'value) => unit) => unit" }, { "id": "Belt.HashMap.forEach", @@ -5244,7 +5244,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'key, 'value, 'id>, 'c, (. 'c, 'key, 'value) => 'c) => 'c" + "signature": "let reduceU: (t<'key, 'value, 'id>, 'c, ('c, 'key, 'value) => 'c) => 'c" }, { "id": "Belt.HashMap.reduce", @@ -5262,7 +5262,7 @@ "docstrings": [ "Same as [keepMapInPlace](#keepMapInPlace) but takes uncurried function." ], - "signature": "let keepMapInPlaceU: (\\n t<'key, 'value, 'id>,\\n (. 'key, 'value) => option<'value>,\\n) => unit" + "signature": "let keepMapInPlaceU: (\n t<'key, 'value, 'id>,\n ('key, 'value) => option<'value>,\n) => unit" }, { "id": "Belt.HashMap.keepMapInPlace", @@ -5271,7 +5271,7 @@ "docstrings": [ "Filters out values for which function `f` returned `None`.\n\n## Examples\n\n```rescript\nmodule IntHash = Belt.Id.MakeHashable({\n type t = int\n let hash = a => a\n let eq = (a, b) => a == b\n})\n\nlet s0 = Belt.HashMap.make(~hintSize=10, ~id=module(IntHash))\nBelt.HashMap.set(s0, 1, \"value1\")\nBelt.HashMap.set(s0, 2, \"value2\")\n\nBelt.HashMap.keepMapInPlace(s0, (key, value) => key == 1 ? None : Some(value))\n```" ], - "signature": "let keepMapInPlace: (\\n t<'key, 'value, 'id>,\\n ('key, 'value) => option<'value>,\\n) => unit" + "signature": "let keepMapInPlace: (\n t<'key, 'value, 'id>,\n ('key, 'value) => option<'value>,\n) => unit" }, { "id": "Belt.HashMap.size", @@ -5316,7 +5316,7 @@ "docstrings": [ "Creates new hash map from array of pairs.\n\nReturns array of values.\n\n## Examples\n\n```rescript\nmodule IntHash = Belt.Id.MakeHashable({\n type t = int\n let hash = a => a\n let eq = (a, b) => a == b\n})\n\nlet s0 = Belt.HashMap.fromArray([(1, \"value1\"), (2, \"value2\")], ~id=module(IntHash))\nBelt.HashMap.toArray(s0) == [(1, \"value1\"), (2, \"value2\")]\n```" ], - "signature": "let fromArray: (\\n array<('key, 'value)>,\\n ~id: id<'key, 'id>,\\n) => t<'key, 'value, 'id>" + "signature": "let fromArray: (\n array<('key, 'value)>,\n ~id: id<'key, 'id>,\n) => t<'key, 'value, 'id>" }, { "id": "Belt.HashMap.mergeMany", @@ -5425,7 +5425,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t<'a, 'id>, (. 'a) => unit) => unit" + "signature": "let forEachU: (t<'a, 'id>, 'a => unit) => unit" }, { "id": "Belt.HashSet.forEach", @@ -5441,7 +5441,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'a, 'id>, 'c, (. 'c, 'a) => 'c) => 'c" + "signature": "let reduceU: (t<'a, 'id>, 'c, ('c, 'a) => 'c) => 'c" }, { "id": "Belt.HashSet.reduce", @@ -5550,7 +5550,7 @@ "kind": "value", "name": "cmpU", "docstrings": [], - "signature": "let cmpU: (t<'k, 'a, 'id>, t<'k, 'a, 'id>, (. 'a, 'a) => int) => int" + "signature": "let cmpU: (t<'k, 'a, 'id>, t<'k, 'a, 'id>, ('a, 'a) => int) => int" }, { "id": "Belt.MutableMap.cmp", @@ -5566,7 +5566,7 @@ "kind": "value", "name": "eqU", "docstrings": [], - "signature": "let eqU: (t<'k, 'a, 'id>, t<'k, 'a, 'id>, (. 'a, 'a) => bool) => bool" + "signature": "let eqU: (t<'k, 'a, 'id>, t<'k, 'a, 'id>, ('a, 'a) => bool) => bool" }, { "id": "Belt.MutableMap.eq", @@ -5582,7 +5582,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t<'k, 'a, 'id>, (. 'k, 'a) => unit) => unit" + "signature": "let forEachU: (t<'k, 'a, 'id>, ('k, 'a) => unit) => unit" }, { "id": "Belt.MutableMap.forEach", @@ -5598,7 +5598,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'k, 'a, 'id>, 'b, (. 'b, 'k, 'a) => 'b) => 'b" + "signature": "let reduceU: (t<'k, 'a, 'id>, 'b, ('b, 'k, 'a) => 'b) => 'b" }, { "id": "Belt.MutableMap.reduce", @@ -5614,7 +5614,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t<'k, 'a, 'id>, (. 'k, 'a) => bool) => bool" + "signature": "let everyU: (t<'k, 'a, 'id>, ('k, 'a) => bool) => bool" }, { "id": "Belt.MutableMap.every", @@ -5630,7 +5630,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t<'k, 'a, 'id>, (. 'k, 'a) => bool) => bool" + "signature": "let someU: (t<'k, 'a, 'id>, ('k, 'a) => bool) => bool" }, { "id": "Belt.MutableMap.some", @@ -5808,7 +5808,7 @@ "kind": "value", "name": "updateU", "docstrings": [], - "signature": "let updateU: (t<'k, 'a, 'id>, 'k, (. option<'a>) => option<'a>) => unit" + "signature": "let updateU: (t<'k, 'a, 'id>, 'k, option<'a> => option<'a>) => unit" }, { "id": "Belt.MutableMap.update", @@ -5829,7 +5829,7 @@ "kind": "value", "name": "mapU", "docstrings": [], - "signature": "let mapU: (t<'k, 'a, 'id>, (. 'a) => 'b) => t<'k, 'b, 'id>" + "signature": "let mapU: (t<'k, 'a, 'id>, 'a => 'b) => t<'k, 'b, 'id>" }, { "id": "Belt.MutableMap.map", @@ -5845,7 +5845,7 @@ "kind": "value", "name": "mapWithKeyU", "docstrings": [], - "signature": "let mapWithKeyU: (t<'k, 'a, 'id>, (. 'k, 'a) => 'b) => t<'k, 'b, 'id>" + "signature": "let mapWithKeyU: (t<'k, 'a, 'id>, ('k, 'a) => 'b) => t<'k, 'b, 'id>" }, { "id": "Belt.MutableMap.mapWithKey", @@ -6047,7 +6047,7 @@ "docstrings": [ "Same as `Belt.MutableSet.forEach` but takes uncurried functon." ], - "signature": "let forEachU: (t<'value, 'id>, (. 'value) => unit) => unit" + "signature": "let forEachU: (t<'value, 'id>, 'value => unit) => unit" }, { "id": "Belt.MutableSet.forEach", @@ -6063,7 +6063,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'value, 'id>, 'a, (. 'a, 'value) => 'a) => 'a" + "signature": "let reduceU: (t<'value, 'id>, 'a, ('a, 'value) => 'a) => 'a" }, { "id": "Belt.MutableSet.reduce", @@ -6079,7 +6079,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t<'value, 'id>, (. 'value) => bool) => bool" + "signature": "let everyU: (t<'value, 'id>, 'value => bool) => bool" }, { "id": "Belt.MutableSet.every", @@ -6095,7 +6095,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t<'value, 'id>, (. 'value) => bool) => bool" + "signature": "let someU: (t<'value, 'id>, 'value => bool) => bool" }, { "id": "Belt.MutableSet.some", @@ -6111,7 +6111,7 @@ "kind": "value", "name": "keepU", "docstrings": [], - "signature": "let keepU: (t<'value, 'id>, (. 'value) => bool) => t<'value, 'id>" + "signature": "let keepU: (t<'value, 'id>, 'value => bool) => t<'value, 'id>" }, { "id": "Belt.MutableSet.keep", @@ -6127,7 +6127,7 @@ "kind": "value", "name": "partitionU", "docstrings": [], - "signature": "let partitionU: (\\n t<'value, 'id>,\\n (. 'value) => bool,\\n) => (t<'value, 'id>, t<'value, 'id>)" + "signature": "let partitionU: (\n t<'value, 'id>,\n 'value => bool,\n) => (t<'value, 'id>, t<'value, 'id>)" }, { "id": "Belt.MutableSet.partition", @@ -6136,7 +6136,7 @@ "docstrings": [ "## Examples\n\n```rescript\nmodule IntCmp = Belt.Id.MakeComparable({\n type t = int\n let cmp = Pervasives.compare\n})\n\nlet isOdd = x => mod(x, 2) != 0\n\nlet s0 = Belt.MutableSet.fromArray([1, 2, 3, 4, 5], ~id=module(IntCmp))\nlet (s1, s2) = s0->Belt.MutableSet.partition(isOdd)\n\ns1->Belt.MutableSet.toArray /* [1,3,5] */\ns2->Belt.MutableSet.toArray /* [2,4] */\n```" ], - "signature": "let partition: (\\n t<'value, 'id>,\\n 'value => bool,\\n) => (t<'value, 'id>, t<'value, 'id>)" + "signature": "let partition: (\n t<'value, 'id>,\n 'value => bool,\n) => (t<'value, 'id>, t<'value, 'id>)" }, { "id": "Belt.MutableSet.size", @@ -6235,7 +6235,7 @@ "docstrings": [ "Returns a tuple `((smaller, larger), present)`, `present` is true when element exist in set.\n\n## Examples\n\n```rescript\nmodule IntCmp = Belt.Id.MakeComparable({\n type t = int\n let cmp = Pervasives.compare\n})\n\nlet s0 = Belt.MutableSet.fromArray([1, 2, 3, 4, 5], ~id=module(IntCmp))\n\nlet ((smaller, larger), present) = s0->Belt.MutableSet.split(3)\n\npresent /* true */\nsmaller->Belt.MutableSet.toArray /* [1,2] */\nlarger->Belt.MutableSet.toArray /* [4,5] */\n```" ], - "signature": "let split: (\\n t<'value, 'id>,\\n 'value,\\n) => ((t<'value, 'id>, t<'value, 'id>), bool)" + "signature": "let split: (\n t<'value, 'id>,\n 'value,\n) => ((t<'value, 'id>, t<'value, 'id>), bool)" }, { "id": "Belt.MutableSet.checkInvariantInternal", @@ -6306,7 +6306,7 @@ "kind": "value", "name": "cmpU", "docstrings": [], - "signature": "let cmpU: (t<'k, 'v, 'id>, t<'k, 'v, 'id>, (. 'v, 'v) => int) => int" + "signature": "let cmpU: (t<'k, 'v, 'id>, t<'k, 'v, 'id>, ('v, 'v) => int) => int" }, { "id": "Belt.Map.cmp", @@ -6322,7 +6322,7 @@ "kind": "value", "name": "eqU", "docstrings": [], - "signature": "let eqU: (t<'k, 'v, 'id>, t<'k, 'v, 'id>, (. 'v, 'v) => bool) => bool" + "signature": "let eqU: (t<'k, 'v, 'id>, t<'k, 'v, 'id>, ('v, 'v) => bool) => bool" }, { "id": "Belt.Map.eq", @@ -6338,7 +6338,7 @@ "kind": "value", "name": "findFirstByU", "docstrings": [], - "signature": "let findFirstByU: (t<'k, 'v, 'id>, (. 'k, 'v) => bool) => option<('k, 'v)>" + "signature": "let findFirstByU: (t<'k, 'v, 'id>, ('k, 'v) => bool) => option<('k, 'v)>" }, { "id": "Belt.Map.findFirstBy", @@ -6354,7 +6354,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t<'k, 'v, 'id>, (. 'k, 'v) => unit) => unit" + "signature": "let forEachU: (t<'k, 'v, 'id>, ('k, 'v) => unit) => unit" }, { "id": "Belt.Map.forEach", @@ -6370,7 +6370,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'k, 'v, 'id>, 'acc, (. 'acc, 'k, 'v) => 'acc) => 'acc" + "signature": "let reduceU: (t<'k, 'v, 'id>, 'acc, ('acc, 'k, 'v) => 'acc) => 'acc" }, { "id": "Belt.Map.reduce", @@ -6386,7 +6386,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t<'k, 'v, 'id>, (. 'k, 'v) => bool) => bool" + "signature": "let everyU: (t<'k, 'v, 'id>, ('k, 'v) => bool) => bool" }, { "id": "Belt.Map.every", @@ -6402,7 +6402,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t<'k, 'v, 'id>, (. 'k, 'v) => bool) => bool" + "signature": "let someU: (t<'k, 'v, 'id>, ('k, 'v) => bool) => bool" }, { "id": "Belt.Map.some", @@ -6607,7 +6607,7 @@ "kind": "value", "name": "updateU", "docstrings": [], - "signature": "let updateU: (\\n t<'k, 'v, 'id>,\\n 'k,\\n (. option<'v>) => option<'v>,\\n) => t<'k, 'v, 'id>" + "signature": "let updateU: (\n t<'k, 'v, 'id>,\n 'k,\n option<'v> => option<'v>,\n) => t<'k, 'v, 'id>" }, { "id": "Belt.Map.update", @@ -6616,7 +6616,7 @@ "docstrings": [ "`update(m, x, f)` returns a map containing the same bindings as `m`, except\nfor the binding of `x`. Depending on the value of `y` where `y` is\n`f(get(m, x))`, the binding of `x` is added, removed or updated. If `y` is\n`None`, the binding is removed if it exists; otherwise, if `y` is `Some(z)`\nthen `x` is associated to `z` in the resulting map." ], - "signature": "let update: (\\n t<'k, 'v, 'id>,\\n 'k,\\n option<'v> => option<'v>,\\n) => t<'k, 'v, 'id>" + "signature": "let update: (\n t<'k, 'v, 'id>,\n 'k,\n option<'v> => option<'v>,\n) => t<'k, 'v, 'id>" }, { "id": "Belt.Map.mergeMany", @@ -6632,7 +6632,7 @@ "kind": "value", "name": "mergeU", "docstrings": [], - "signature": "let mergeU: (\\n t<'k, 'v, 'id>,\\n t<'k, 'v2, 'id>,\\n (. 'k, option<'v>, option<'v2>) => option<'v3>,\\n) => t<'k, 'v3, 'id>" + "signature": "let mergeU: (\n t<'k, 'v, 'id>,\n t<'k, 'v2, 'id>,\n ('k, option<'v>, option<'v2>) => option<'v3>,\n) => t<'k, 'v3, 'id>" }, { "id": "Belt.Map.merge", @@ -6641,14 +6641,14 @@ "docstrings": [ "`merge(m1, m2, f)` computes a map whose keys is a subset of keys of `m1`\nand of `m2`. The presence of each such binding, and the corresponding\nvalue, is determined with the function `f`." ], - "signature": "let merge: (\\n t<'k, 'v, 'id>,\\n t<'k, 'v2, 'id>,\\n ('k, option<'v>, option<'v2>) => option<'v3>,\\n) => t<'k, 'v3, 'id>" + "signature": "let merge: (\n t<'k, 'v, 'id>,\n t<'k, 'v2, 'id>,\n ('k, option<'v>, option<'v2>) => option<'v3>,\n) => t<'k, 'v3, 'id>" }, { "id": "Belt.Map.keepU", "kind": "value", "name": "keepU", "docstrings": [], - "signature": "let keepU: (t<'k, 'v, 'id>, (. 'k, 'v) => bool) => t<'k, 'v, 'id>" + "signature": "let keepU: (t<'k, 'v, 'id>, ('k, 'v) => bool) => t<'k, 'v, 'id>" }, { "id": "Belt.Map.keep", @@ -6664,7 +6664,7 @@ "kind": "value", "name": "partitionU", "docstrings": [], - "signature": "let partitionU: (\\n t<'k, 'v, 'id>,\\n (. 'k, 'v) => bool,\\n) => (t<'k, 'v, 'id>, t<'k, 'v, 'id>)" + "signature": "let partitionU: (\n t<'k, 'v, 'id>,\n ('k, 'v) => bool,\n) => (t<'k, 'v, 'id>, t<'k, 'v, 'id>)" }, { "id": "Belt.Map.partition", @@ -6673,7 +6673,7 @@ "docstrings": [ "`partition(m, p)` returns a pair of maps `(m1, m2)`, where `m1` contains\nall the bindings of `s` that satisfy the predicate `p`, and `m2` is the map\nwith all the bindings of `s` that do not satisfy `p`." ], - "signature": "let partition: (\\n t<'k, 'v, 'id>,\\n ('k, 'v) => bool,\\n) => (t<'k, 'v, 'id>, t<'k, 'v, 'id>)" + "signature": "let partition: (\n t<'k, 'v, 'id>,\n ('k, 'v) => bool,\n) => (t<'k, 'v, 'id>, t<'k, 'v, 'id>)" }, { "id": "Belt.Map.split", @@ -6682,14 +6682,14 @@ "docstrings": [ "`split(x, m)` returns a tuple `(l, r)`, data, where `l` is the map with all\nthe bindings of `m` whose 'k is strictly less than `x`; `r` is the map with\nall the bindings of m whose 'k is strictly greater than `x`; `data` is\n`None` if `m` contains no binding for `x`, or `Some(v)` if `m` binds `v` to\n`x`." ], - "signature": "let split: (\\n t<'k, 'v, 'id>,\\n 'k,\\n) => ((t<'k, 'v, 'id>, t<'k, 'v, 'id>), option<'v>)" + "signature": "let split: (\n t<'k, 'v, 'id>,\n 'k,\n) => ((t<'k, 'v, 'id>, t<'k, 'v, 'id>), option<'v>)" }, { "id": "Belt.Map.mapU", "kind": "value", "name": "mapU", "docstrings": [], - "signature": "let mapU: (t<'k, 'v, 'id>, (. 'v) => 'v2) => t<'k, 'v2, 'id>" + "signature": "let mapU: (t<'k, 'v, 'id>, 'v => 'v2) => t<'k, 'v2, 'id>" }, { "id": "Belt.Map.map", @@ -6705,7 +6705,7 @@ "kind": "value", "name": "mapWithKeyU", "docstrings": [], - "signature": "let mapWithKeyU: (t<'k, 'v, 'id>, (. 'k, 'v) => 'v2) => t<'k, 'v2, 'id>" + "signature": "let mapWithKeyU: (t<'k, 'v, 'id>, ('k, 'v) => 'v2) => t<'k, 'v2, 'id>" }, { "id": "Belt.Map.mapWithKey", @@ -6741,7 +6741,7 @@ "docstrings": [ "`packIdData(~id, ~data)`\n\nAdvanced usage only\n\nReturns the packed collection." ], - "signature": "let packIdData: (\\n ~id: id<'k, 'id>,\\n ~data: Belt_MapDict.t<'k, 'v, 'id>,\\n) => t<'k, 'v, 'id>" + "signature": "let packIdData: (\n ~id: id<'k, 'id>,\n ~data: Belt_MapDict.t<'k, 'v, 'id>,\n) => t<'k, 'v, 'id>" }, { "id": "Belt.Map.checkInvariantInternal", @@ -6922,7 +6922,7 @@ "docstrings": [ "Same as [forEach](#forEach) but takes uncurried functon." ], - "signature": "let forEachU: (t<'value, 'id>, (. 'value) => unit) => unit" + "signature": "let forEachU: (t<'value, 'id>, 'value => unit) => unit" }, { "id": "Belt.Set.forEach", @@ -6938,7 +6938,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'value, 'id>, 'a, (. 'a, 'value) => 'a) => 'a" + "signature": "let reduceU: (t<'value, 'id>, 'a, ('a, 'value) => 'a) => 'a" }, { "id": "Belt.Set.reduce", @@ -6954,7 +6954,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t<'value, 'id>, (. 'value) => bool) => bool" + "signature": "let everyU: (t<'value, 'id>, 'value => bool) => bool" }, { "id": "Belt.Set.every", @@ -6970,7 +6970,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t<'value, 'id>, (. 'value) => bool) => bool" + "signature": "let someU: (t<'value, 'id>, 'value => bool) => bool" }, { "id": "Belt.Set.some", @@ -6986,7 +6986,7 @@ "kind": "value", "name": "keepU", "docstrings": [], - "signature": "let keepU: (t<'value, 'id>, (. 'value) => bool) => t<'value, 'id>" + "signature": "let keepU: (t<'value, 'id>, 'value => bool) => t<'value, 'id>" }, { "id": "Belt.Set.keep", @@ -7002,7 +7002,7 @@ "kind": "value", "name": "partitionU", "docstrings": [], - "signature": "let partitionU: (\\n t<'value, 'id>,\\n (. 'value) => bool,\\n) => (t<'value, 'id>, t<'value, 'id>)" + "signature": "let partitionU: (\n t<'value, 'id>,\n 'value => bool,\n) => (t<'value, 'id>, t<'value, 'id>)" }, { "id": "Belt.Set.partition", @@ -7011,7 +7011,7 @@ "docstrings": [ "Returns a pair of sets, where first is the set of all the elements of set that satisfy the predicate, and second is the set of all the elements of set that do not satisfy the predicate.\n\n## Examples\n\n```rescript\nlet isOdd = x => mod(x, 2) != 0\n\nlet s0 = Belt.Set.fromArray([1,2,3,4,5], ~id=module(IntCmp))\nlet (s1, s2) = s0->Belt.Set.partition(isOdd)\n\ns1->Belt.Set.toArray /* [1,3,5] */\ns2->Belt.Set.toArray /* [2,4] */\n```" ], - "signature": "let partition: (\\n t<'value, 'id>,\\n 'value => bool,\\n) => (t<'value, 'id>, t<'value, 'id>)" + "signature": "let partition: (\n t<'value, 'id>,\n 'value => bool,\n) => (t<'value, 'id>, t<'value, 'id>)" }, { "id": "Belt.Set.size", @@ -7110,7 +7110,7 @@ "docstrings": [ "Returns a tuple `((smaller, larger), present)`, `present` is true when element exist in set.\n\n## Examples\n\n```rescript\nlet s0 = Belt.Set.fromArray([1,2,3,4,5], ~id=module(IntCmp))\n\nlet ((smaller, larger), present) = s0->Belt.Set.split(3)\n\npresent /* true */\nsmaller->Belt.Set.toArray /* [1,2] */\nlarger->Belt.Set.toArray /* [4,5] */\n\n```" ], - "signature": "let split: (\\n t<'value, 'id>,\\n 'value,\\n) => ((t<'value, 'id>, t<'value, 'id>), bool)" + "signature": "let split: (\n t<'value, 'id>,\n 'value,\n) => ((t<'value, 'id>, t<'value, 'id>), bool)" }, { "id": "Belt.Set.checkInvariantInternal", @@ -7146,7 +7146,7 @@ "docstrings": [ "**Advanced usage only**\n\nReturns the packed collection." ], - "signature": "let packIdData: (\\n ~id: id<'value, 'id>,\\n ~data: Belt_SetDict.t<'value, 'id>,\\n) => t<'value, 'id>" + "signature": "let packIdData: (\n ~id: id<'value, 'id>,\n ~data: Belt_SetDict.t<'value, 'id>,\n) => t<'value, 'id>" } ] }, @@ -7163,7 +7163,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (int, int, (. int) => unit) => unit" + "signature": "let forEachU: (int, int, int => unit) => unit" }, { "id": "Belt.Range.forEach", @@ -7179,7 +7179,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (int, int, (. int) => bool) => bool" + "signature": "let everyU: (int, int, int => bool) => bool" }, { "id": "Belt.Range.every", @@ -7195,7 +7195,7 @@ "kind": "value", "name": "everyByU", "docstrings": [], - "signature": "let everyByU: (int, int, ~step: int, (. int) => bool) => bool" + "signature": "let everyByU: (int, int, ~step: int, int => bool) => bool" }, { "id": "Belt.Range.everyBy", @@ -7211,7 +7211,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (int, int, (. int) => bool) => bool" + "signature": "let someU: (int, int, int => bool) => bool" }, { "id": "Belt.Range.some", @@ -7227,7 +7227,7 @@ "kind": "value", "name": "someByU", "docstrings": [], - "signature": "let someByU: (int, int, ~step: int, (. int) => bool) => bool" + "signature": "let someByU: (int, int, ~step: int, int => bool) => bool" }, { "id": "Belt.Range.someBy", @@ -7354,7 +7354,7 @@ "docstrings": [ "Uncurried version of [makeBy](#makeBy)" ], - "signature": "let makeByU: (int, (. int) => 'a) => t<'a>" + "signature": "let makeByU: (int, int => 'a) => t<'a>" }, { "id": "Belt.List.makeBy", @@ -7444,7 +7444,7 @@ "docstrings": [ "Uncurried version of [map](#map)." ], - "signature": "let mapU: (t<'a>, (. 'a) => 'b) => t<'b>" + "signature": "let mapU: (t<'a>, 'a => 'b) => t<'b>" }, { "id": "Belt.List.map", @@ -7471,7 +7471,7 @@ "docstrings": [ "Uncurried version of [zipBy](#zipBy)." ], - "signature": "let zipByU: (t<'a>, t<'b>, (. 'a, 'b) => 'c) => t<'c>" + "signature": "let zipByU: (t<'a>, t<'b>, ('a, 'b) => 'c) => t<'c>" }, { "id": "Belt.List.zipBy", @@ -7489,7 +7489,7 @@ "docstrings": [ "Uncurried version of [mapWithIndex](#mapWithIndex)." ], - "signature": "let mapWithIndexU: (t<'a>, (. int, 'a) => 'b) => t<'b>" + "signature": "let mapWithIndexU: (t<'a>, (int, 'a) => 'b) => t<'b>" }, { "id": "Belt.List.mapWithIndex", @@ -7534,7 +7534,7 @@ "docstrings": [ "Uncurried version of [mapReverse](#mapReverse)." ], - "signature": "let mapReverseU: (t<'a>, (. 'a) => 'b) => t<'b>" + "signature": "let mapReverseU: (t<'a>, 'a => 'b) => t<'b>" }, { "id": "Belt.List.mapReverse", @@ -7552,7 +7552,7 @@ "docstrings": [ "Uncurried version of [forEach](#forEach)." ], - "signature": "let forEachU: (t<'a>, (. 'a) => 'b) => unit" + "signature": "let forEachU: (t<'a>, 'a => 'b) => unit" }, { "id": "Belt.List.forEach", @@ -7570,7 +7570,7 @@ "docstrings": [ "Uncurried version of [forEachWithIndex](#forEachWithIndex)." ], - "signature": "let forEachWithIndexU: (t<'a>, (. int, 'a) => 'b) => unit" + "signature": "let forEachWithIndexU: (t<'a>, (int, 'a) => 'b) => unit" }, { "id": "Belt.List.forEachWithIndex", @@ -7588,7 +7588,7 @@ "docstrings": [ "Uncurried version of [reduce](#reduce)." ], - "signature": "let reduceU: (t<'a>, 'b, (. 'b, 'a) => 'b) => 'b" + "signature": "let reduceU: (t<'a>, 'b, ('b, 'a) => 'b) => 'b" }, { "id": "Belt.List.reduce", @@ -7606,7 +7606,7 @@ "docstrings": [ "Uncurried version of [reduceWithIndex](#reduceWithIndex)." ], - "signature": "let reduceWithIndexU: (t<'a>, 'b, (. 'b, 'a, int) => 'b) => 'b" + "signature": "let reduceWithIndexU: (t<'a>, 'b, ('b, 'a, int) => 'b) => 'b" }, { "id": "Belt.List.reduceWithIndex", @@ -7624,7 +7624,7 @@ "docstrings": [ "Uncurried version of [reduceReverse](#reduceReverse)." ], - "signature": "let reduceReverseU: (t<'a>, 'b, (. 'b, 'a) => 'b) => 'b" + "signature": "let reduceReverseU: (t<'a>, 'b, ('b, 'a) => 'b) => 'b" }, { "id": "Belt.List.reduceReverse", @@ -7642,7 +7642,7 @@ "docstrings": [ "Uncurried version of [mapReverse2](#mapReverse2)." ], - "signature": "let mapReverse2U: (t<'a>, t<'b>, (. 'a, 'b) => 'c) => t<'c>" + "signature": "let mapReverse2U: (t<'a>, t<'b>, ('a, 'b) => 'c) => t<'c>" }, { "id": "Belt.List.mapReverse2", @@ -7660,7 +7660,7 @@ "docstrings": [ "Uncurried version of [forEach2](#forEach2)." ], - "signature": "let forEach2U: (t<'a>, t<'b>, (. 'a, 'b) => 'c) => unit" + "signature": "let forEach2U: (t<'a>, t<'b>, ('a, 'b) => 'c) => unit" }, { "id": "Belt.List.forEach2", @@ -7678,7 +7678,7 @@ "docstrings": [ "Uncurried version of [reduce2](#reduce2)." ], - "signature": "let reduce2U: (t<'b>, t<'c>, 'a, (. 'a, 'b, 'c) => 'a) => 'a" + "signature": "let reduce2U: (t<'b>, t<'c>, 'a, ('a, 'b, 'c) => 'a) => 'a" }, { "id": "Belt.List.reduce2", @@ -7696,7 +7696,7 @@ "docstrings": [ "Uncurried version of [reduceReverse2](#reduceReverse2)." ], - "signature": "let reduceReverse2U: (t<'a>, t<'b>, 'c, (. 'c, 'a, 'b) => 'c) => 'c" + "signature": "let reduceReverse2U: (t<'a>, t<'b>, 'c, ('c, 'a, 'b) => 'c) => 'c" }, { "id": "Belt.List.reduceReverse2", @@ -7714,7 +7714,7 @@ "docstrings": [ "Uncurried version of [every](#every)." ], - "signature": "let everyU: (t<'a>, (. 'a) => bool) => bool" + "signature": "let everyU: (t<'a>, 'a => bool) => bool" }, { "id": "Belt.List.every", @@ -7732,7 +7732,7 @@ "docstrings": [ "Uncurried version of [some](#some)." ], - "signature": "let someU: (t<'a>, (. 'a) => bool) => bool" + "signature": "let someU: (t<'a>, 'a => bool) => bool" }, { "id": "Belt.List.some", @@ -7750,7 +7750,7 @@ "docstrings": [ "Uncurried version of [every2](#every2)." ], - "signature": "let every2U: (t<'a>, t<'b>, (. 'a, 'b) => bool) => bool" + "signature": "let every2U: (t<'a>, t<'b>, ('a, 'b) => bool) => bool" }, { "id": "Belt.List.every2", @@ -7768,7 +7768,7 @@ "docstrings": [ "Uncurried version of [some2](#some2)." ], - "signature": "let some2U: (t<'a>, t<'b>, (. 'a, 'b) => bool) => bool" + "signature": "let some2U: (t<'a>, t<'b>, ('a, 'b) => bool) => bool" }, { "id": "Belt.List.some2", @@ -7795,7 +7795,7 @@ "docstrings": [ "Uncurried version of [cmp](#cmp)." ], - "signature": "let cmpU: (t<'a>, t<'a>, (. 'a, 'a) => int) => int" + "signature": "let cmpU: (t<'a>, t<'a>, ('a, 'a) => int) => int" }, { "id": "Belt.List.cmp", @@ -7813,7 +7813,7 @@ "docstrings": [ "Uncurried version of [eq](#eq)." ], - "signature": "let eqU: (t<'a>, t<'a>, (. 'a, 'a) => bool) => bool" + "signature": "let eqU: (t<'a>, t<'a>, ('a, 'a) => bool) => bool" }, { "id": "Belt.List.eq", @@ -7831,7 +7831,7 @@ "docstrings": [ "Uncurried version of [has](#has)." ], - "signature": "let hasU: (t<'a>, 'b, (. 'a, 'b) => bool) => bool" + "signature": "let hasU: (t<'a>, 'b, ('a, 'b) => bool) => bool" }, { "id": "Belt.List.has", @@ -7849,7 +7849,7 @@ "docstrings": [ "Uncurried version of [getBy](#getBy)." ], - "signature": "let getByU: (t<'a>, (. 'a) => bool) => option<'a>" + "signature": "let getByU: (t<'a>, 'a => bool) => option<'a>" }, { "id": "Belt.List.getBy", @@ -7867,7 +7867,7 @@ "docstrings": [ "Uncurried version of [keep](#keep)." ], - "signature": "let keepU: (t<'a>, (. 'a) => bool) => t<'a>" + "signature": "let keepU: (t<'a>, 'a => bool) => t<'a>" }, { "id": "Belt.List.keep", @@ -7895,7 +7895,7 @@ "docstrings": [ "Uncurried version of [keepWithIndex](#keepWithIndex)." ], - "signature": "let keepWithIndexU: (t<'a>, (. 'a, int) => bool) => t<'a>" + "signature": "let keepWithIndexU: (t<'a>, ('a, int) => bool) => t<'a>" }, { "id": "Belt.List.keepWithIndex", @@ -7923,7 +7923,7 @@ "docstrings": [ "Uncurried version of [keepMap](#keepMap)." ], - "signature": "let keepMapU: (t<'a>, (. 'a) => option<'b>) => t<'b>" + "signature": "let keepMapU: (t<'a>, 'a => option<'b>) => t<'b>" }, { "id": "Belt.List.keepMap", @@ -7941,7 +7941,7 @@ "docstrings": [ "Uncurried version of [partition](#partition)." ], - "signature": "let partitionU: (t<'a>, (. 'a) => bool) => (t<'a>, t<'a>)" + "signature": "let partitionU: (t<'a>, 'a => bool) => (t<'a>, t<'a>)" }, { "id": "Belt.List.partition", @@ -7968,7 +7968,7 @@ "docstrings": [ "Uncurried version of [getAssoc](#getAssoc)." ], - "signature": "let getAssocU: (t<('a, 'c)>, 'b, (. 'a, 'b) => bool) => option<'c>" + "signature": "let getAssocU: (t<('a, 'c)>, 'b, ('a, 'b) => bool) => option<'c>" }, { "id": "Belt.List.getAssoc", @@ -7986,7 +7986,7 @@ "docstrings": [ "Uncurried version of [hasAssoc](#hasAssoc)." ], - "signature": "let hasAssocU: (t<('a, 'c)>, 'b, (. 'a, 'b) => bool) => bool" + "signature": "let hasAssocU: (t<('a, 'c)>, 'b, ('a, 'b) => bool) => bool" }, { "id": "Belt.List.hasAssoc", @@ -8004,7 +8004,7 @@ "docstrings": [ "Uncurried version of [removeAssoc](#removeAssoc)." ], - "signature": "let removeAssocU: (t<('a, 'c)>, 'b, (. 'a, 'b) => bool) => t<('a, 'c)>" + "signature": "let removeAssocU: (t<('a, 'c)>, 'b, ('a, 'b) => bool) => t<('a, 'c)>" }, { "id": "Belt.List.removeAssoc", @@ -8022,7 +8022,7 @@ "docstrings": [ "Uncurried version of [setAssoc](#setAssoc)." ], - "signature": "let setAssocU: (t<('a, 'c)>, 'a, 'c, (. 'a, 'a) => bool) => t<('a, 'c)>" + "signature": "let setAssocU: (t<('a, 'c)>, 'a, 'c, ('a, 'a) => bool) => t<('a, 'c)>" }, { "id": "Belt.List.setAssoc", @@ -8040,7 +8040,7 @@ "docstrings": [ "Uncurried version of [sort](#sort)." ], - "signature": "let sortU: (t<'a>, (. 'a, 'a) => int) => t<'a>" + "signature": "let sortU: (t<'a>, ('a, 'a) => int) => t<'a>" }, { "id": "Belt.List.sort", @@ -8149,7 +8149,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t<'a>, (. 'a) => unit) => unit" + "signature": "let forEachU: (t<'a>, 'a => unit) => unit" }, { "id": "Belt.MutableStack.forEach", @@ -8163,7 +8163,7 @@ "kind": "value", "name": "dynamicPopIterU", "docstrings": [], - "signature": "let dynamicPopIterU: (t<'a>, (. 'a) => unit) => unit" + "signature": "let dynamicPopIterU: (t<'a>, 'a => unit) => unit" }, { "id": "Belt.MutableStack.dynamicPopIter", @@ -8315,7 +8315,7 @@ "kind": "value", "name": "mapU", "docstrings": [], - "signature": "let mapU: (t<'a>, (. 'a) => 'b) => t<'b>" + "signature": "let mapU: (t<'a>, 'a => 'b) => t<'b>" }, { "id": "Belt.MutableQueue.map", @@ -8329,7 +8329,7 @@ "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t<'a>, (. 'a) => unit) => unit" + "signature": "let forEachU: (t<'a>, 'a => unit) => unit" }, { "id": "Belt.MutableQueue.forEach", @@ -8345,7 +8345,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (t<'a>, 'b, (. 'b, 'a) => 'b) => 'b" + "signature": "let reduceU: (t<'a>, 'b, ('b, 'a) => 'b) => 'b" }, { "id": "Belt.MutableQueue.reduce", @@ -8389,7 +8389,7 @@ "kind": "value", "name": "strictlySortedLengthU", "docstrings": [], - "signature": "let strictlySortedLengthU: (array<'a>, (. 'a, 'a) => bool) => int" + "signature": "let strictlySortedLengthU: (array<'a>, ('a, 'a) => bool) => int" }, { "id": "Belt.SortArray.strictlySortedLength", @@ -8405,7 +8405,7 @@ "kind": "value", "name": "isSortedU", "docstrings": [], - "signature": "let isSortedU: (array<'a>, (. 'a, 'a) => int) => bool" + "signature": "let isSortedU: (array<'a>, ('a, 'a) => int) => bool" }, { "id": "Belt.SortArray.isSorted", @@ -8421,7 +8421,7 @@ "kind": "value", "name": "stableSortInPlaceByU", "docstrings": [], - "signature": "let stableSortInPlaceByU: (array<'a>, (. 'a, 'a) => int) => unit" + "signature": "let stableSortInPlaceByU: (array<'a>, ('a, 'a) => int) => unit" }, { "id": "Belt.SortArray.stableSortInPlaceBy", @@ -8435,7 +8435,7 @@ "kind": "value", "name": "stableSortByU", "docstrings": [], - "signature": "let stableSortByU: (array<'a>, (. 'a, 'a) => int) => array<'a>" + "signature": "let stableSortByU: (array<'a>, ('a, 'a) => int) => array<'a>" }, { "id": "Belt.SortArray.stableSortBy", @@ -8451,7 +8451,7 @@ "kind": "value", "name": "binarySearchByU", "docstrings": [], - "signature": "let binarySearchByU: (array<'a>, 'a, (. 'a, 'a) => int) => int" + "signature": "let binarySearchByU: (array<'a>, 'a, ('a, 'a) => int) => int" }, { "id": "Belt.SortArray.binarySearchBy", @@ -8467,7 +8467,7 @@ "kind": "value", "name": "unionU", "docstrings": [], - "signature": "let unionU: (\\n array<'a>,\\n int,\\n int,\\n array<'a>,\\n int,\\n int,\\n array<'a>,\\n int,\\n (. 'a, 'a) => int,\\n) => int" + "signature": "let unionU: (\n array<'a>,\n int,\n int,\n array<'a>,\n int,\n int,\n array<'a>,\n int,\n ('a, 'a) => int,\n) => int" }, { "id": "Belt.SortArray.union", @@ -8476,14 +8476,14 @@ "docstrings": [ "`union src src1ofs src1len src2 src2ofs src2len dst dstofs cmp` assume `src` and\n`src2` is strictly sorted. for equivalent elements, it is picked from `src`\nalso assume that `dst` is large enough to store all elements" ], - "signature": "let union: (\\n array<'a>,\\n int,\\n int,\\n array<'a>,\\n int,\\n int,\\n array<'a>,\\n int,\\n ('a, 'a) => int,\\n) => int" + "signature": "let union: (\n array<'a>,\n int,\n int,\n array<'a>,\n int,\n int,\n array<'a>,\n int,\n ('a, 'a) => int,\n) => int" }, { "id": "Belt.SortArray.intersectU", "kind": "value", "name": "intersectU", "docstrings": [], - "signature": "let intersectU: (\\n array<'a>,\\n int,\\n int,\\n array<'a>,\\n int,\\n int,\\n array<'a>,\\n int,\\n (. 'a, 'a) => int,\\n) => int" + "signature": "let intersectU: (\n array<'a>,\n int,\n int,\n array<'a>,\n int,\n int,\n array<'a>,\n int,\n ('a, 'a) => int,\n) => int" }, { "id": "Belt.SortArray.intersect", @@ -8492,21 +8492,21 @@ "docstrings": [ "`union src src1ofs src1len src2 src2ofs src2len dst dstofs cmp`\n\n**return** the `offset` in the output array" ], - "signature": "let intersect: (\\n array<'a>,\\n int,\\n int,\\n array<'a>,\\n int,\\n int,\\n array<'a>,\\n int,\\n ('a, 'a) => int,\\n) => int" + "signature": "let intersect: (\n array<'a>,\n int,\n int,\n array<'a>,\n int,\n int,\n array<'a>,\n int,\n ('a, 'a) => int,\n) => int" }, { "id": "Belt.SortArray.diffU", "kind": "value", "name": "diffU", "docstrings": [], - "signature": "let diffU: (\\n array<'a>,\\n int,\\n int,\\n array<'a>,\\n int,\\n int,\\n array<'a>,\\n int,\\n (. 'a, 'a) => int,\\n) => int" + "signature": "let diffU: (\n array<'a>,\n int,\n int,\n array<'a>,\n int,\n int,\n array<'a>,\n int,\n ('a, 'a) => int,\n) => int" }, { "id": "Belt.SortArray.diff", "kind": "value", "name": "diff", "docstrings": [], - "signature": "let diff: (\\n array<'a>,\\n int,\\n int,\\n array<'a>,\\n int,\\n int,\\n array<'a>,\\n int,\\n ('a, 'a) => int,\\n) => int" + "signature": "let diff: (\n array<'a>,\n int,\n int,\n array<'a>,\n int,\n int,\n array<'a>,\n int,\n ('a, 'a) => int,\n) => int" } ] }, @@ -8515,7 +8515,7 @@ "name": "Array", "docstrings": [ "[`Belt.Array`]()\n\n **mutable array**: Utilities functions", - "Utililites for `Array` functions.\n\n### Note about index syntax\n\nCode like `arr[0]` does *not* compile to JavaScript `arr[0]`. Reason transforms\nthe `[]` index syntax into a function: `Array.get(arr, 0)`. By default, this\nuses the default standard library's `Array.get` function, which may raise an\nexception if the index isn't found. If you `open Belt`, it will use the\n`Belt.Array.get` function which returns options instead of raising exceptions. \n[See this for more information](../belt.mdx#array-access-runtime-safety)." + "Utilities for `Array` functions.\n\n### Note about index syntax\n\nCode like `arr[0]` does *not* compile to JavaScript `arr[0]`. Reason transforms\nthe `[]` index syntax into a function: `Array.get(arr, 0)`. By default, this\nuses the default standard library's `Array.get` function, which may raise an\nexception if the index isn't found. If you `open Belt`, it will use the\n`Belt.Array.get` function which returns options instead of raising exceptions. \n[See this for more information](../belt.mdx#array-access-runtime-safety)." ], "items": [ { @@ -8690,7 +8690,7 @@ "kind": "value", "name": "makeByU", "docstrings": [], - "signature": "let makeByU: (int, (. int) => 'a) => t<'a>" + "signature": "let makeByU: (int, int => 'a) => t<'a>" }, { "id": "Belt.Array.makeBy", @@ -8706,7 +8706,7 @@ "kind": "value", "name": "makeByAndShuffleU", "docstrings": [], - "signature": "let makeByAndShuffleU: (int, (. int) => 'a) => t<'a>" + "signature": "let makeByAndShuffleU: (int, int => 'a) => t<'a>" }, { "id": "Belt.Array.makeByAndShuffle", @@ -8731,7 +8731,7 @@ "kind": "value", "name": "zipByU", "docstrings": [], - "signature": "let zipByU: (t<'a>, array<'b>, (. 'a, 'b) => 'c) => array<'c>" + "signature": "let zipByU: (t<'a>, array<'b>, ('a, 'b) => 'c) => array<'c>" }, { "id": "Belt.Array.zipBy", @@ -8812,7 +8812,7 @@ "docstrings": [ "`blit(~src=v1, ~srcOffset=o1, ~dst=v2, ~dstOffset=o2, ~len)` copies `len` elements\nfrom array `v1`;starting at element number `o1`;to array `v2`, starting at element\nnumber `o2`. It works correctly even if `v1` and `v2` are the same array and the\nsource and destination chunks overlap.\n\n`offset` can be negative; `-1` means `len - 1`; if `len + offset` is still negative;it will be set as 0\n\nFor each of the examples;presume that `v1 == [10, 11, 12, 13, 14, 15, 16, 17]` and `v2 == [20, 21, 22, 23, 24, 25, 26, 27]`. The result shown is the content of the destination array.\n\n## Examples\n\n```rescript\nlet v1 = [10, 11, 12, 13, 14, 15, 16, 17]\nlet v2 = [20, 21, 22, 23, 24, 25, 26, 27]\n\nBelt.Array.blit(~src=v1, ~srcOffset=4, ~dst=v2, ~dstOffset=2, ~len=3)\nv2 == [20, 21, 14, 15, 16, 25, 26, 27]\n\nBelt.Array.blit(~src=v1, ~srcOffset=4, ~dst=v1, ~dstOffset=2, ~len=3)\nv1 == [10, 11, 14, 15, 16, 15, 16, 17]\n```" ], - "signature": "let blit: (\\n ~src: t<'a>,\\n ~srcOffset: int,\\n ~dst: t<'a>,\\n ~dstOffset: int,\\n ~len: int,\\n) => unit" + "signature": "let blit: (\n ~src: t<'a>,\n ~srcOffset: int,\n ~dst: t<'a>,\n ~dstOffset: int,\n ~len: int,\n) => unit" }, { "id": "Belt.Array.blitUnsafe", @@ -8821,14 +8821,14 @@ "docstrings": [ "Unsafe blit without bounds checking." ], - "signature": "let blitUnsafe: (\\n ~src: t<'a>,\\n ~srcOffset: int,\\n ~dst: t<'a>,\\n ~dstOffset: int,\\n ~len: int,\\n) => unit" + "signature": "let blitUnsafe: (\n ~src: t<'a>,\n ~srcOffset: int,\n ~dst: t<'a>,\n ~dstOffset: int,\n ~len: int,\n) => unit" }, { "id": "Belt.Array.forEachU", "kind": "value", "name": "forEachU", "docstrings": [], - "signature": "let forEachU: (t<'a>, (. 'a) => unit) => unit" + "signature": "let forEachU: (t<'a>, 'a => unit) => unit" }, { "id": "Belt.Array.forEach", @@ -8844,7 +8844,7 @@ "kind": "value", "name": "mapU", "docstrings": [], - "signature": "let mapU: (t<'a>, (. 'a) => 'b) => array<'b>" + "signature": "let mapU: (t<'a>, 'a => 'b) => array<'b>" }, { "id": "Belt.Array.map", @@ -8860,7 +8860,7 @@ "kind": "value", "name": "flatMapU", "docstrings": [], - "signature": "let flatMapU: (t<'a>, (. 'a) => array<'b>) => array<'b>" + "signature": "let flatMapU: (t<'a>, 'a => array<'b>) => array<'b>" }, { "id": "Belt.Array.flatMap", @@ -8876,7 +8876,7 @@ "kind": "value", "name": "getByU", "docstrings": [], - "signature": "let getByU: (t<'a>, (. 'a) => bool) => option<'a>" + "signature": "let getByU: (t<'a>, 'a => bool) => option<'a>" }, { "id": "Belt.Array.getBy", @@ -8892,7 +8892,7 @@ "kind": "value", "name": "getIndexByU", "docstrings": [], - "signature": "let getIndexByU: (t<'a>, (. 'a) => bool) => option" + "signature": "let getIndexByU: (t<'a>, 'a => bool) => option" }, { "id": "Belt.Array.getIndexBy", @@ -8908,7 +8908,7 @@ "kind": "value", "name": "keepU", "docstrings": [], - "signature": "let keepU: (t<'a>, (. 'a) => bool) => t<'a>" + "signature": "let keepU: (t<'a>, 'a => bool) => t<'a>" }, { "id": "Belt.Array.keep", @@ -8924,7 +8924,7 @@ "kind": "value", "name": "keepWithIndexU", "docstrings": [], - "signature": "let keepWithIndexU: (t<'a>, (. 'a, int) => bool) => t<'a>" + "signature": "let keepWithIndexU: (t<'a>, ('a, int) => bool) => t<'a>" }, { "id": "Belt.Array.keepWithIndex", @@ -8940,7 +8940,7 @@ "kind": "value", "name": "keepMapU", "docstrings": [], - "signature": "let keepMapU: (t<'a>, (. 'a) => option<'b>) => array<'b>" + "signature": "let keepMapU: (t<'a>, 'a => option<'b>) => array<'b>" }, { "id": "Belt.Array.keepMap", @@ -8956,7 +8956,7 @@ "kind": "value", "name": "forEachWithIndexU", "docstrings": [], - "signature": "let forEachWithIndexU: (t<'a>, (. int, 'a) => unit) => unit" + "signature": "let forEachWithIndexU: (t<'a>, (int, 'a) => unit) => unit" }, { "id": "Belt.Array.forEachWithIndex", @@ -8972,7 +8972,7 @@ "kind": "value", "name": "mapWithIndexU", "docstrings": [], - "signature": "let mapWithIndexU: (t<'a>, (. int, 'a) => 'b) => array<'b>" + "signature": "let mapWithIndexU: (t<'a>, (int, 'a) => 'b) => array<'b>" }, { "id": "Belt.Array.mapWithIndex", @@ -8988,7 +8988,7 @@ "kind": "value", "name": "partitionU", "docstrings": [], - "signature": "let partitionU: (t<'a>, (. 'a) => bool) => (t<'a>, t<'a>)" + "signature": "let partitionU: (t<'a>, 'a => bool) => (t<'a>, t<'a>)" }, { "id": "Belt.Array.partition", @@ -9004,7 +9004,7 @@ "kind": "value", "name": "reduceU", "docstrings": [], - "signature": "let reduceU: (array<'b>, 'a, (. 'a, 'b) => 'a) => 'a" + "signature": "let reduceU: (array<'b>, 'a, ('a, 'b) => 'a) => 'a" }, { "id": "Belt.Array.reduce", @@ -9020,7 +9020,7 @@ "kind": "value", "name": "reduceReverseU", "docstrings": [], - "signature": "let reduceReverseU: (array<'b>, 'a, (. 'a, 'b) => 'a) => 'a" + "signature": "let reduceReverseU: (array<'b>, 'a, ('a, 'b) => 'a) => 'a" }, { "id": "Belt.Array.reduceReverse", @@ -9036,7 +9036,7 @@ "kind": "value", "name": "reduceReverse2U", "docstrings": [], - "signature": "let reduceReverse2U: (t<'a>, array<'b>, 'c, (. 'c, 'a, 'b) => 'c) => 'c" + "signature": "let reduceReverse2U: (t<'a>, array<'b>, 'c, ('c, 'a, 'b) => 'c) => 'c" }, { "id": "Belt.Array.reduceReverse2", @@ -9052,7 +9052,7 @@ "kind": "value", "name": "reduceWithIndexU", "docstrings": [], - "signature": "let reduceWithIndexU: (t<'a>, 'b, (. 'b, 'a, int) => 'b) => 'b" + "signature": "let reduceWithIndexU: (t<'a>, 'b, ('b, 'a, int) => 'b) => 'b" }, { "id": "Belt.Array.reduceWithIndex", @@ -9068,7 +9068,7 @@ "kind": "value", "name": "joinWithU", "docstrings": [], - "signature": "let joinWithU: (t<'a>, string, (. 'a) => string) => string" + "signature": "let joinWithU: (t<'a>, string, 'a => string) => string" }, { "id": "Belt.Array.joinWith", @@ -9084,7 +9084,7 @@ "kind": "value", "name": "someU", "docstrings": [], - "signature": "let someU: (t<'a>, (. 'a) => bool) => bool" + "signature": "let someU: (t<'a>, 'a => bool) => bool" }, { "id": "Belt.Array.some", @@ -9100,7 +9100,7 @@ "kind": "value", "name": "everyU", "docstrings": [], - "signature": "let everyU: (t<'a>, (. 'a) => bool) => bool" + "signature": "let everyU: (t<'a>, 'a => bool) => bool" }, { "id": "Belt.Array.every", @@ -9116,7 +9116,7 @@ "kind": "value", "name": "every2U", "docstrings": [], - "signature": "let every2U: (t<'a>, array<'b>, (. 'a, 'b) => bool) => bool" + "signature": "let every2U: (t<'a>, array<'b>, ('a, 'b) => bool) => bool" }, { "id": "Belt.Array.every2", @@ -9132,7 +9132,7 @@ "kind": "value", "name": "some2U", "docstrings": [], - "signature": "let some2U: (t<'a>, array<'b>, (. 'a, 'b) => bool) => bool" + "signature": "let some2U: (t<'a>, array<'b>, ('a, 'b) => bool) => bool" }, { "id": "Belt.Array.some2", @@ -9148,7 +9148,7 @@ "kind": "value", "name": "cmpU", "docstrings": [], - "signature": "let cmpU: (t<'a>, t<'a>, (. 'a, 'a) => int) => int" + "signature": "let cmpU: (t<'a>, t<'a>, ('a, 'a) => int) => int" }, { "id": "Belt.Array.cmp", @@ -9164,7 +9164,7 @@ "kind": "value", "name": "eqU", "docstrings": [], - "signature": "let eqU: (t<'a>, t<'a>, (. 'a, 'a) => bool) => bool" + "signature": "let eqU: (t<'a>, t<'a>, ('a, 'a) => bool) => bool" }, { "id": "Belt.Array.eq", @@ -9189,7 +9189,7 @@ "kind": "value", "name": "initU", "docstrings": [], - "signature": "let initU: (int, (. int) => 'a) => t<'a>" + "signature": "let initU: (int, int => 'a) => t<'a>" }, { "id": "Belt.Array.init", @@ -9251,14 +9251,14 @@ "docstrings": [ "`('key, 'id) cmparable` is a module of functions, here it only includes `cmp`.\n\nUnlike normal functions, when created, it comes with a unique identity (guaranteed\nby the type system).\n\nIt can be created using function [`comparableU`]() or [`comparable`]().\n\nThe idea of a unique identity when created is that it makes sure two sets would type\nmismatch if they use different comparison function" ], - "signature": "type comparable<'key, 'id> = module(Comparable\\n with type identity = 'id\\n with type t = 'key)" + "signature": "type comparable<'key, 'id> = module(Comparable\n with type identity = 'id\n with type t = 'key)" }, { "id": "Belt.Id.comparableU", "kind": "value", "name": "comparableU", "docstrings": [], - "signature": "let comparableU: (\\n ~cmp: (. 'a, 'a) => int,\\n) => module(Comparable with type t = 'a)" + "signature": "let comparableU: (\n ~cmp: ('a, 'a) => int,\n) => module(Comparable with type t = 'a)" }, { "id": "Belt.Id.comparable", @@ -9267,7 +9267,7 @@ "docstrings": [ "## Examples\n\n```rescript\nmodule C = (\n val Belt.Id.comparable ~cmp:(compare : int -> int -> int)\n)\nlet m = Belt.Set.make(module C)\n```\nNote that the name of C can not be ignored" ], - "signature": "let comparable: (\\n ~cmp: ('a, 'a) => int,\\n) => module(Comparable with type t = 'a)" + "signature": "let comparable: (\n ~cmp: ('a, 'a) => int,\n) => module(Comparable with type t = 'a)" }, { "id": "Belt.Id.hashable", @@ -9276,42 +9276,42 @@ "docstrings": [ "`('key, 'id) hashable` is a module of functions, here it only includes `hash`, `eq`.\n\nUnlike normal functions, when created, it comes with a unique identity (guaranteed\nby the type system).\n\nIt can be created using function [`hashableU`]() or [`hashable`]().\n\nThe idea of a unique identity when created is that it makes sure two hash sets would type\nmismatch if they use different comparison function" ], - "signature": "type hashable<'key, 'id> = module(Hashable\\n with type identity = 'id\\n with type t = 'key)" + "signature": "type hashable<'key, 'id> = module(Hashable\n with type identity = 'id\n with type t = 'key)" }, { "id": "Belt.Id.hashableU", "kind": "value", "name": "hashableU", "docstrings": [], - "signature": "let hashableU: (\\n ~hash: (. 'a) => int,\\n ~eq: (. 'a, 'a) => bool,\\n) => module(Hashable with type t = 'a)" + "signature": "let hashableU: (\n ~hash: 'a => int,\n ~eq: ('a, 'a) => bool,\n) => module(Hashable with type t = 'a)" }, { "id": "Belt.Id.hashable", "kind": "value", "name": "hashable", "docstrings": [], - "signature": "let hashable: (\\n ~hash: 'a => int,\\n ~eq: ('a, 'a) => bool,\\n) => module(Hashable with type t = 'a)" + "signature": "let hashable: (\n ~hash: 'a => int,\n ~eq: ('a, 'a) => bool,\n) => module(Hashable with type t = 'a)" }, { "id": "Belt.Id.getHashInternal", "kind": "value", "name": "getHashInternal", "docstrings": [], - "signature": "let getHashInternal: hash<'a, 'id> => (. 'a) => int" + "signature": "let getHashInternal: hash<'a, 'id> => 'a => int" }, { "id": "Belt.Id.getEqInternal", "kind": "value", "name": "getEqInternal", "docstrings": [], - "signature": "let getEqInternal: eq<'a, 'id> => (. 'a, 'a) => bool" + "signature": "let getEqInternal: eq<'a, 'id> => ('a, 'a) => bool" }, { "id": "Belt.Id.getCmpInternal", "kind": "value", "name": "getCmpInternal", "docstrings": [], - "signature": "let getCmpInternal: cmp<'a, 'id> => (. 'a, 'a) => int" + "signature": "let getCmpInternal: cmp<'a, 'id> => ('a, 'a) => int" } ] } diff --git a/data/api/latest/core.json b/data/api/latest/core.json index a238193c5..f7cebb9ac 100644 --- a/data/api/latest/core.json +++ b/data/api/latest/core.json @@ -154,12 +154,21 @@ "docstrings": [], "signature": "let typeof: 'a => Core__Type.t" }, + { + "id": "Core.import", + "kind": "value", + "name": "import", + "docstrings": [ + "`import(value)` dynamically import a value or function from a ReScript\nmodule. The import call will return a `promise`, resolving to the dynamically loaded\nvalue.\n\n## Examples\n\n`Core__Array.res` file:\n\n```rescript\n@send external indexOf: (array<'a>, 'a) => int = \"indexOf\"\n\nlet indexOfOpt = (arr, item) =>\n switch arr->indexOf(item) {\n | -1 => None\n | index => Some(index)\n }\n```\nIn other file you can import the `indexOfOpt` value defined in `Core__Array.res`\n\n```rescript\nlet main = async () => {\n let indexOfOpt = await import(Core__Array.indexOfOpt)\n let index = indexOfOpt([1, 2], 2)\n Console.log(index)\n}\n```\n\nCompiles to:\n\n```javascript\nasync function main() {\n var add = await import(\"./Core__Array.mjs\").then(function(m) {\n return m.indexOfOpt;\n });\n var index = indexOfOpt([1, 2], 2);\n console.log(index);\n}\n```" + ], + "signature": "let import: 'a => promise<'a>" + }, { "id": "Core.t", "kind": "type", "name": "t", "docstrings": [], - "signature": "type t<'a> = Js.t<'a>\\n constraint 'a = {..}" + "signature": "type t<'a> = Js.t<'a>\n constraint 'a = {..}" }, { "id": "Core.null", @@ -191,6 +200,48 @@ } ] }, + "core/intl/numberformat/grouping": { + "id": "Core.Intl.NumberFormat.Grouping", + "name": "Grouping", + "docstrings": [], + "items": [ + { + "id": "Core.Intl.NumberFormat.Grouping.t", + "kind": "type", + "name": "t", + "docstrings": [], + "signature": "type t" + }, + { + "id": "Core.Intl.NumberFormat.Grouping.parsed", + "kind": "type", + "name": "parsed", + "docstrings": [], + "signature": "type parsed = [#always | #auto | #bool(bool) | #min2]" + }, + { + "id": "Core.Intl.NumberFormat.Grouping.fromBool", + "kind": "value", + "name": "fromBool", + "docstrings": [], + "signature": "let fromBool: bool => t" + }, + { + "id": "Core.Intl.NumberFormat.Grouping.fromString", + "kind": "value", + "name": "fromString", + "docstrings": [], + "signature": "let fromString: [#always | #auto | #min2] => t" + }, + { + "id": "Core.Intl.NumberFormat.Grouping.parseJsValue", + "kind": "value", + "name": "parseJsValue", + "docstrings": [], + "signature": "let parseJsValue: 'a => option<[> #always | #auto | #bool(bool) | #min2]>" + } + ] + }, "core/re/result": { "id": "Core.Re.Result", "name": "Result", @@ -241,6 +292,164 @@ } ] }, + "core/intl/segments": { + "id": "Core.Intl.Segments", + "name": "Segments", + "docstrings": [ + "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.\nhttps://tc39.es/ecma402/#sec-segments-objects" + ], + "items": [ + { + "id": "Core.Intl.Segments.t", + "kind": "type", + "name": "t", + "docstrings": [], + "signature": "type t" + }, + { + "id": "Core.Intl.Segments.segmentData", + "kind": "type", + "name": "segmentData", + "docstrings": [], + "signature": "type segmentData = {\n segment: string,\n index: int,\n isWordLike: option,\n input: string,\n}" + }, + { + "id": "Core.Intl.Segments.containing", + "kind": "value", + "name": "containing", + "docstrings": [], + "signature": "let containing: t => segmentData" + }, + { + "id": "Core.Intl.Segments.containingWithIndex", + "kind": "value", + "name": "containingWithIndex", + "docstrings": [], + "signature": "let containingWithIndex: (t, int) => segmentData" + } + ] + }, + "core/intl/segmenter": { + "id": "Core.Intl.Segmenter", + "name": "Segmenter", + "docstrings": [ + "Not supported in Firefox" + ], + "items": [ + { + "id": "Core.Intl.Segmenter.t", + "kind": "type", + "name": "t", + "docstrings": [], + "signature": "type t" + }, + { + "id": "Core.Intl.Segmenter.granularity", + "kind": "type", + "name": "granularity", + "docstrings": [], + "signature": "type granularity = [#grapheme | #sentence | #word]" + }, + { + "id": "Core.Intl.Segmenter.options", + "kind": "type", + "name": "options", + "docstrings": [], + "signature": "type options = {\n localeMatcher?: Core__Intl__Common.localeMatcher,\n granularity?: granularity,\n}" + }, + { + "id": "Core.Intl.Segmenter.pluralCategories", + "kind": "type", + "name": "pluralCategories", + "docstrings": [], + "signature": "type pluralCategories = [\n | #few\n | #many\n | #one\n | #other\n | #two\n | #zero\n]" + }, + { + "id": "Core.Intl.Segmenter.resolvedOptions", + "kind": "type", + "name": "resolvedOptions", + "docstrings": [], + "signature": "type resolvedOptions = {\n locale: string,\n granularity: granularity,\n}" + }, + { + "id": "Core.Intl.Segmenter.supportedLocalesOptions", + "kind": "type", + "name": "supportedLocalesOptions", + "docstrings": [], + "signature": "type supportedLocalesOptions = {\n localeMatcher: Core__Intl__Common.localeMatcher,\n}" + }, + { + "id": "Core.Intl.Segmenter.make", + "kind": "value", + "name": "make", + "docstrings": [], + "signature": "let make: unit => t" + }, + { + "id": "Core.Intl.Segmenter.makeWithLocale", + "kind": "value", + "name": "makeWithLocale", + "docstrings": [], + "signature": "let makeWithLocale: string => t" + }, + { + "id": "Core.Intl.Segmenter.makeWithLocales", + "kind": "value", + "name": "makeWithLocales", + "docstrings": [], + "signature": "let makeWithLocales: array => t" + }, + { + "id": "Core.Intl.Segmenter.makeWithLocaleAndOptions", + "kind": "value", + "name": "makeWithLocaleAndOptions", + "docstrings": [], + "signature": "let makeWithLocaleAndOptions: (string, options) => t" + }, + { + "id": "Core.Intl.Segmenter.makeWithLocalesAndOptions", + "kind": "value", + "name": "makeWithLocalesAndOptions", + "docstrings": [], + "signature": "let makeWithLocalesAndOptions: (array, options) => t" + }, + { + "id": "Core.Intl.Segmenter.makeWithOptions", + "kind": "value", + "name": "makeWithOptions", + "docstrings": [], + "signature": "let makeWithOptions: options => t" + }, + { + "id": "Core.Intl.Segmenter.supportedLocalesOf", + "kind": "value", + "name": "supportedLocalesOf", + "docstrings": [], + "signature": "let supportedLocalesOf: array => t" + }, + { + "id": "Core.Intl.Segmenter.supportedLocalesOfWithOptions", + "kind": "value", + "name": "supportedLocalesOfWithOptions", + "docstrings": [], + "signature": "let supportedLocalesOfWithOptions: (array, supportedLocalesOptions) => t" + }, + { + "id": "Core.Intl.Segmenter.resolvedOptions", + "kind": "value", + "name": "resolvedOptions", + "docstrings": [], + "signature": "let resolvedOptions: t => resolvedOptions" + }, + { + "id": "Core.Intl.Segmenter.segment", + "kind": "value", + "name": "segment", + "docstrings": [], + "signature": "let segment: (t, string) => Core__Intl__Segments.t" + } + ] + }, "core/intl/relativetimeformat": { "id": "Core.Intl.RelativeTimeFormat", "name": "RelativeTimeFormat", @@ -253,6 +462,62 @@ "docstrings": [], "signature": "type t" }, + { + "id": "Core.Intl.RelativeTimeFormat.numeric", + "kind": "type", + "name": "numeric", + "docstrings": [], + "signature": "type numeric = [#always | #auto]" + }, + { + "id": "Core.Intl.RelativeTimeFormat.style", + "kind": "type", + "name": "style", + "docstrings": [], + "signature": "type style = [#long | #narrow | #short]" + }, + { + "id": "Core.Intl.RelativeTimeFormat.timeUnit", + "kind": "type", + "name": "timeUnit", + "docstrings": [], + "signature": "type timeUnit = [\n | #day\n | #hour\n | #minute\n | #month\n | #quarter\n | #second\n | #week\n | #year\n]" + }, + { + "id": "Core.Intl.RelativeTimeFormat.options", + "kind": "type", + "name": "options", + "docstrings": [], + "signature": "type options = {\n localeMatcher?: Core__Intl__Common.localeMatcher,\n numeric?: numeric,\n style?: style,\n}" + }, + { + "id": "Core.Intl.RelativeTimeFormat.supportedLocalesOptions", + "kind": "type", + "name": "supportedLocalesOptions", + "docstrings": [], + "signature": "type supportedLocalesOptions = {\n localeMatcher: Core__Intl__Common.localeMatcher,\n}" + }, + { + "id": "Core.Intl.RelativeTimeFormat.resolvedOptions", + "kind": "type", + "name": "resolvedOptions", + "docstrings": [], + "signature": "type resolvedOptions = {\n locale: string,\n numeric: numeric,\n style: style,\n numberingSystem: string,\n}" + }, + { + "id": "Core.Intl.RelativeTimeFormat.relativeTimePartComponent", + "kind": "type", + "name": "relativeTimePartComponent", + "docstrings": [], + "signature": "type relativeTimePartComponent = [#integer | #literal]" + }, + { + "id": "Core.Intl.RelativeTimeFormat.relativeTimePart", + "kind": "type", + "name": "relativeTimePart", + "docstrings": [], + "signature": "type relativeTimePart = {\n \\\"type\": relativeTimePartComponent,\n value: string,\n unit?: timeUnit,\n}" + }, { "id": "Core.Intl.RelativeTimeFormat.make", "kind": "value", @@ -279,21 +544,21 @@ "kind": "value", "name": "makeWithLocaleAndOptions", "docstrings": [], - "signature": "let makeWithLocaleAndOptions: (string, {..}) => t" + "signature": "let makeWithLocaleAndOptions: (string, options) => t" }, { "id": "Core.Intl.RelativeTimeFormat.makeWithLocalesAndOptions", "kind": "value", "name": "makeWithLocalesAndOptions", "docstrings": [], - "signature": "let makeWithLocalesAndOptions: (array, {..}) => t" + "signature": "let makeWithLocalesAndOptions: (array, options) => t" }, { "id": "Core.Intl.RelativeTimeFormat.makeWithOptions", "kind": "value", "name": "makeWithOptions", "docstrings": [], - "signature": "let makeWithOptions: {..} => t" + "signature": "let makeWithOptions: options => t" }, { "id": "Core.Intl.RelativeTimeFormat.supportedLocalesOf", @@ -307,21 +572,14 @@ "kind": "value", "name": "supportedLocalesOfWithOptions", "docstrings": [], - "signature": "let supportedLocalesOfWithOptions: (array, {..}) => t" + "signature": "let supportedLocalesOfWithOptions: (array, supportedLocalesOptions) => t" }, { "id": "Core.Intl.RelativeTimeFormat.resolvedOptions", "kind": "value", "name": "resolvedOptions", "docstrings": [], - "signature": "let resolvedOptions: t => {..}" - }, - { - "id": "Core.Intl.RelativeTimeFormat.timeUnit", - "kind": "type", - "name": "timeUnit", - "docstrings": [], - "signature": "type timeUnit = [\\n | #day\\n | #hour\\n | #minute\\n | #month\\n | #quarter\\n | #second\\n | #week\\n | #year\\n]" + "signature": "let resolvedOptions: t => resolvedOptions" }, { "id": "Core.Intl.RelativeTimeFormat.format", @@ -335,7 +593,7 @@ "kind": "value", "name": "formatToParts", "docstrings": [], - "signature": "let formatToParts: (\\n t,\\n int,\\n timeUnit,\\n) => array<\\n {\\\"type\\\": string, \\\"unit\\\": option, \\\"value\\\": string},\\n>" + "signature": "let formatToParts: (t, int, timeUnit) => array" } ] }, @@ -351,6 +609,41 @@ "docstrings": [], "signature": "type t" }, + { + "id": "Core.Intl.PluralRules.localeType", + "kind": "type", + "name": "localeType", + "docstrings": [], + "signature": "type localeType = [#cardinal | #ordinal]" + }, + { + "id": "Core.Intl.PluralRules.options", + "kind": "type", + "name": "options", + "docstrings": [], + "signature": "type options = {\n localeMatcher?: Core__Intl__Common.localeMatcher,\n \\\"type\"?: localeType,\n minimumIntegerDigits?: Core__Intl__Common.oneTo21,\n minimumFractionDigits?: Core__Intl__Common.zeroTo20,\n maximumFractionDigits?: Core__Intl__Common.zeroTo20,\n minimumSignificantDigits?: Core__Intl__Common.oneTo21,\n maximumSignificantDigits?: Core__Intl__Common.oneTo21,\n}" + }, + { + "id": "Core.Intl.PluralRules.pluralCategories", + "kind": "type", + "name": "pluralCategories", + "docstrings": [], + "signature": "type pluralCategories = [\n | #few\n | #many\n | #one\n | #other\n | #two\n | #zero\n]" + }, + { + "id": "Core.Intl.PluralRules.resolvedOptions", + "kind": "type", + "name": "resolvedOptions", + "docstrings": [], + "signature": "type resolvedOptions = {\n locale: string,\n pluralCategories: array,\n \\\"type\": localeType,\n minimumIntegerDigits?: Core__Intl__Common.oneTo21,\n minimumFractionDigits?: Core__Intl__Common.zeroTo20,\n maximumFractionDigits?: Core__Intl__Common.zeroTo20,\n minimumSignificantDigits?: Core__Intl__Common.oneTo21,\n maximumSignificantDigits?: Core__Intl__Common.oneTo21,\n}" + }, + { + "id": "Core.Intl.PluralRules.supportedLocalesOptions", + "kind": "type", + "name": "supportedLocalesOptions", + "docstrings": [], + "signature": "type supportedLocalesOptions = {\n localeMatcher: Core__Intl__Common.localeMatcher,\n}" + }, { "id": "Core.Intl.PluralRules.make", "kind": "value", @@ -377,21 +670,21 @@ "kind": "value", "name": "makeWithLocaleAndOptions", "docstrings": [], - "signature": "let makeWithLocaleAndOptions: (string, {..}) => t" + "signature": "let makeWithLocaleAndOptions: (string, options) => t" }, { "id": "Core.Intl.PluralRules.makeWithLocalesAndOptions", "kind": "value", "name": "makeWithLocalesAndOptions", "docstrings": [], - "signature": "let makeWithLocalesAndOptions: (array, {..}) => t" + "signature": "let makeWithLocalesAndOptions: (array, options) => t" }, { "id": "Core.Intl.PluralRules.makeWithOptions", "kind": "value", "name": "makeWithOptions", "docstrings": [], - "signature": "let makeWithOptions: {..} => t" + "signature": "let makeWithOptions: options => t" }, { "id": "Core.Intl.PluralRules.supportedLocalesOf", @@ -405,14 +698,14 @@ "kind": "value", "name": "supportedLocalesOfWithOptions", "docstrings": [], - "signature": "let supportedLocalesOfWithOptions: (array, {..}) => t" + "signature": "let supportedLocalesOfWithOptions: (array, supportedLocalesOptions) => t" }, { "id": "Core.Intl.PluralRules.resolvedOptions", "kind": "value", "name": "resolvedOptions", "docstrings": [], - "signature": "let resolvedOptions: t => {..}" + "signature": "let resolvedOptions: t => resolvedOptions" }, { "id": "Core.Intl.PluralRules.rule", @@ -441,6 +734,27 @@ "name": "selectBigInt", "docstrings": [], "signature": "let selectBigInt: (t, Core__BigInt.t) => rule" + }, + { + "id": "Core.Intl.PluralRules.selectRange", + "kind": "value", + "name": "selectRange", + "docstrings": [], + "signature": "let selectRange: (t, ~start: float, ~end: float) => rule" + }, + { + "id": "Core.Intl.PluralRules.selectRangeInt", + "kind": "value", + "name": "selectRangeInt", + "docstrings": [], + "signature": "let selectRangeInt: (t, ~start: int, ~end: int) => rule" + }, + { + "id": "Core.Intl.PluralRules.selectRangeBigInt", + "kind": "value", + "name": "selectRangeBigInt", + "docstrings": [], + "signature": "let selectRangeBigInt: (t, ~start: Core__BigInt.t, ~end: Core__BigInt.t) => rule" } ] }, @@ -457,67 +771,215 @@ "signature": "type t" }, { - "id": "Core.Intl.NumberFormat.make", - "kind": "value", - "name": "make", - "docstrings": [], - "signature": "let make: unit => t" + "id": "Core.Intl.NumberFormat.currency", + "kind": "type", + "name": "currency", + "docstrings": [ + "An ISO 4217 currency code. e.g. USD, EUR, CNY" + ], + "signature": "type currency = string" }, { - "id": "Core.Intl.NumberFormat.makeWithLocale", - "kind": "value", - "name": "makeWithLocale", + "id": "Core.Intl.NumberFormat.currencyDisplay", + "kind": "type", + "name": "currencyDisplay", "docstrings": [], - "signature": "let makeWithLocale: string => t" + "signature": "type currencyDisplay = [\n | #code\n | #name\n | #narrowSymbol\n | #symbol\n]" }, { - "id": "Core.Intl.NumberFormat.makeWithLocales", - "kind": "value", - "name": "makeWithLocales", + "id": "Core.Intl.NumberFormat.currencySign", + "kind": "type", + "name": "currencySign", "docstrings": [], - "signature": "let makeWithLocales: array => t" + "signature": "type currencySign = [#accounting | #standard]" }, { - "id": "Core.Intl.NumberFormat.makeWithLocaleAndOptions", - "kind": "value", - "name": "makeWithLocaleAndOptions", + "id": "Core.Intl.NumberFormat.notation", + "kind": "type", + "name": "notation", "docstrings": [], - "signature": "let makeWithLocaleAndOptions: (string, {..}) => t" + "signature": "type notation = [\n | #compact\n | #engineering\n | #scientific\n | #standard\n]" }, { - "id": "Core.Intl.NumberFormat.makeWithLocalesAndOptions", - "kind": "value", - "name": "makeWithLocalesAndOptions", - "docstrings": [], - "signature": "let makeWithLocalesAndOptions: (array, {..}) => t" + "id": "Core.Intl.NumberFormat.compactDisplay", + "kind": "type", + "name": "compactDisplay", + "docstrings": [ + "Used only when notation is #compact" + ], + "signature": "type compactDisplay = [#long | #short]" }, { - "id": "Core.Intl.NumberFormat.makeWithOptions", - "kind": "value", - "name": "makeWithOptions", + "id": "Core.Intl.NumberFormat.signDisplay", + "kind": "type", + "name": "signDisplay", "docstrings": [], - "signature": "let makeWithOptions: {..} => t" + "signature": "type signDisplay = [\n | #always\n | #auto\n | #exceptZero\n | #negative\n | #never\n]" }, { - "id": "Core.Intl.NumberFormat.supportedLocalesOf", - "kind": "value", - "name": "supportedLocalesOf", + "id": "Core.Intl.NumberFormat.style", + "kind": "type", + "name": "style", "docstrings": [], - "signature": "let supportedLocalesOf: array => t" + "signature": "type style = [#currency | #decimal | #percent | #unit]" }, { - "id": "Core.Intl.NumberFormat.supportedLocalesOfWithOptions", - "kind": "value", - "name": "supportedLocalesOfWithOptions", - "docstrings": [], - "signature": "let supportedLocalesOfWithOptions: (array, {..}) => t" - }, + "id": "Core.Intl.NumberFormat.unitSystem", + "kind": "type", + "name": "unitSystem", + "docstrings": [ + "Defined in https://tc39.es/proposal-unified-intl-numberformat/section6/locales-currencies-tz_proposed_out.html#sec-issanctionedsimpleunitidentifier\nOnly used when style is #unit" + ], + "signature": "type unitSystem = string" + }, + { + "id": "Core.Intl.NumberFormat.unitDisplay", + "kind": "type", + "name": "unitDisplay", + "docstrings": [ + "Only used when style is #unit" + ], + "signature": "type unitDisplay = [#long | #narrow | #short]" + }, + { + "id": "Core.Intl.NumberFormat.rounding", + "kind": "type", + "name": "rounding", + "docstrings": [], + "signature": "type rounding = [\n | #ceil\n | #expand\n | #floor\n | #halfCeil\n | #halfEven\n | #halfExpand\n | #halfFloor\n | #halfTrunc\n | #trunc\n]" + }, + { + "id": "Core.Intl.NumberFormat.roundingPriority", + "kind": "type", + "name": "roundingPriority", + "docstrings": [], + "signature": "type roundingPriority = [\n | #auto\n | #lessPrecision\n | #morePrecision\n]" + }, + { + "id": "Core.Intl.NumberFormat.roundingIncrement", + "kind": "type", + "name": "roundingIncrement", + "docstrings": [], + "signature": "type roundingIncrement = [\n | #1\n | #10\n | #100\n | #1000\n | #2\n | #20\n | #200\n | #2000\n | #25\n | #250\n | #2500\n | #5\n | #50\n | #500\n | #5000\n]" + }, + { + "id": "Core.Intl.NumberFormat.trailingZeroDisplay", + "kind": "type", + "name": "trailingZeroDisplay", + "docstrings": [], + "signature": "type trailingZeroDisplay = [\n | #auto\n | #lessPrecision\n | #stripIfInteger\n]" + }, + { + "id": "Core.Intl.NumberFormat.options", + "kind": "type", + "name": "options", + "docstrings": [], + "signature": "type options = {\n compactDisplay?: compactDisplay,\n numberingSystem?: Core__Intl__Common.numberingSystem,\n currency?: currency,\n currencyDisplay?: currencyDisplay,\n currencySign?: currencySign,\n localeMatcher?: Core__Intl__Common.localeMatcher,\n notation?: notation,\n signDisplay?: signDisplay,\n style?: style,\n unit?: unitSystem,\n unitDisplay?: unitDisplay,\n useGrouping?: Grouping.t,\n roundingMode?: rounding,\n roundingPriority?: roundingPriority,\n roundingIncrement?: roundingIncrement,\n trailingZeroDisplay?: trailingZeroDisplay,\n minimumIntegerDigits?: Core__Intl__Common.oneTo21,\n minimumFractionDigits?: Core__Intl__Common.zeroTo20,\n maximumFractionDigits?: Core__Intl__Common.zeroTo20,\n minimumSignificantDigits?: Core__Intl__Common.oneTo21,\n maximumSignificantDigits?: Core__Intl__Common.oneTo21,\n}" + }, + { + "id": "Core.Intl.NumberFormat.resolvedOptions", + "kind": "type", + "name": "resolvedOptions", + "docstrings": [], + "signature": "type resolvedOptions = {\n currency?: currency,\n currencyDisplay?: currencyDisplay,\n currencySign?: currencySign,\n compactDisplay?: compactDisplay,\n unit: unitSystem,\n unitDisplay: unitDisplay,\n roundingMode?: rounding,\n roundingPriority?: roundingPriority,\n roundingIncrement?: roundingIncrement,\n minimumIntegerDigits?: Core__Intl__Common.oneTo21,\n minimumFractionDigits?: Core__Intl__Common.zeroTo20,\n maximumFractionDigits?: Core__Intl__Common.zeroTo20,\n minimumSignificantDigits?: Core__Intl__Common.oneTo21,\n maximumSignificantDigits?: Core__Intl__Common.oneTo21,\n locale: string,\n notation: notation,\n numberingSystem: Core__Intl__Common.numberingSystem,\n signDisplay: signDisplay,\n style: style,\n useGrouping: Grouping.t,\n}" + }, + { + "id": "Core.Intl.NumberFormat.supportedLocalesOptions", + "kind": "type", + "name": "supportedLocalesOptions", + "docstrings": [], + "signature": "type supportedLocalesOptions = {\n localeMatcher: Core__Intl__Common.localeMatcher,\n}" + }, + { + "id": "Core.Intl.NumberFormat.numberFormatPartType", + "kind": "type", + "name": "numberFormatPartType", + "docstrings": [], + "signature": "type numberFormatPartType = [\n | #compact\n | #currency\n | #decimal\n | #exponentInteger\n | #exponentMinusSign\n | #exponentSeparator\n | #fraction\n | #group\n | #infinity\n | #integer\n | #literal\n | #minusSign\n | #nan\n | #percentSign\n | #plusSign\n | #unit\n | #unknown\n]" + }, + { + "id": "Core.Intl.NumberFormat.numberFormatPart", + "kind": "type", + "name": "numberFormatPart", + "docstrings": [], + "signature": "type numberFormatPart = {\n \\\"type\": numberFormatPartType,\n value: string,\n}" + }, + { + "id": "Core.Intl.NumberFormat.rangeSource", + "kind": "type", + "name": "rangeSource", + "docstrings": [], + "signature": "type rangeSource = [#endRange | #shared | #startRange]" + }, + { + "id": "Core.Intl.NumberFormat.numberFormatRangePart", + "kind": "type", + "name": "numberFormatRangePart", + "docstrings": [], + "signature": "type numberFormatRangePart = {\n \\\"type\": numberFormatPartType,\n value: string,\n source: rangeSource,\n}" + }, + { + "id": "Core.Intl.NumberFormat.make", + "kind": "value", + "name": "make", + "docstrings": [], + "signature": "let make: unit => t" + }, + { + "id": "Core.Intl.NumberFormat.makeWithLocale", + "kind": "value", + "name": "makeWithLocale", + "docstrings": [], + "signature": "let makeWithLocale: string => t" + }, + { + "id": "Core.Intl.NumberFormat.makeWithLocales", + "kind": "value", + "name": "makeWithLocales", + "docstrings": [], + "signature": "let makeWithLocales: array => t" + }, + { + "id": "Core.Intl.NumberFormat.makeWithLocaleAndOptions", + "kind": "value", + "name": "makeWithLocaleAndOptions", + "docstrings": [], + "signature": "let makeWithLocaleAndOptions: (string, options) => t" + }, + { + "id": "Core.Intl.NumberFormat.makeWithLocalesAndOptions", + "kind": "value", + "name": "makeWithLocalesAndOptions", + "docstrings": [], + "signature": "let makeWithLocalesAndOptions: (array, options) => t" + }, + { + "id": "Core.Intl.NumberFormat.makeWithOptions", + "kind": "value", + "name": "makeWithOptions", + "docstrings": [], + "signature": "let makeWithOptions: options => t" + }, + { + "id": "Core.Intl.NumberFormat.supportedLocalesOf", + "kind": "value", + "name": "supportedLocalesOf", + "docstrings": [], + "signature": "let supportedLocalesOf: array => t" + }, + { + "id": "Core.Intl.NumberFormat.supportedLocalesOfWithOptions", + "kind": "value", + "name": "supportedLocalesOfWithOptions", + "docstrings": [], + "signature": "let supportedLocalesOfWithOptions: (array, supportedLocalesOptions) => t" + }, { "id": "Core.Intl.NumberFormat.resolvedOptions", "kind": "value", "name": "resolvedOptions", "docstrings": [], - "signature": "let resolvedOptions: t => {..}" + "signature": "let resolvedOptions: t => resolvedOptions" }, { "id": "Core.Intl.NumberFormat.format", @@ -526,166 +988,525 @@ "docstrings": [], "signature": "let format: (t, float) => string" }, + { + "id": "Core.Intl.NumberFormat.formatRange", + "kind": "value", + "name": "formatRange", + "docstrings": [], + "signature": "let formatRange: (t, ~start: float, ~end: float) => array" + }, { "id": "Core.Intl.NumberFormat.formatToParts", "kind": "value", "name": "formatToParts", "docstrings": [], - "signature": "let formatToParts: (t, float) => array<{\\\"type\\\": string, \\\"value\\\": string}>" + "signature": "let formatToParts: (t, float) => array" + }, + { + "id": "Core.Intl.NumberFormat.formatRangeToParts", + "kind": "value", + "name": "formatRangeToParts", + "docstrings": [], + "signature": "let formatRangeToParts: (\n t,\n ~start: float,\n ~end: float,\n) => array" }, { "id": "Core.Intl.NumberFormat.formatInt", "kind": "value", "name": "formatInt", "docstrings": [], - "signature": "let formatInt: (t, int) => string" + "signature": "let formatInt: (t, int) => string" + }, + { + "id": "Core.Intl.NumberFormat.formatIntRange", + "kind": "value", + "name": "formatIntRange", + "docstrings": [], + "signature": "let formatIntRange: (t, ~start: int, ~end: int) => array" + }, + { + "id": "Core.Intl.NumberFormat.formatIntToParts", + "kind": "value", + "name": "formatIntToParts", + "docstrings": [], + "signature": "let formatIntToParts: (t, int) => array" + }, + { + "id": "Core.Intl.NumberFormat.formatIntRangeToParts", + "kind": "value", + "name": "formatIntRangeToParts", + "docstrings": [], + "signature": "let formatIntRangeToParts: (t, ~start: int, ~end: int) => array" + }, + { + "id": "Core.Intl.NumberFormat.formatBigInt", + "kind": "value", + "name": "formatBigInt", + "docstrings": [], + "signature": "let formatBigInt: (t, Core__BigInt.t) => string" + }, + { + "id": "Core.Intl.NumberFormat.formatBigIntRange", + "kind": "value", + "name": "formatBigIntRange", + "docstrings": [], + "signature": "let formatBigIntRange: (\n t,\n ~start: Core__BigInt.t,\n ~end: Core__BigInt.t,\n) => array" + }, + { + "id": "Core.Intl.NumberFormat.formatBigIntToParts", + "kind": "value", + "name": "formatBigIntToParts", + "docstrings": [], + "signature": "let formatBigIntToParts: (t, Core__BigInt.t) => array" + }, + { + "id": "Core.Intl.NumberFormat.formatBigIntRangeToParts", + "kind": "value", + "name": "formatBigIntRangeToParts", + "docstrings": [], + "signature": "let formatBigIntRangeToParts: (\n t,\n ~start: Core__BigInt.t,\n ~end: Core__BigInt.t,\n) => array" + }, + { + "id": "Core.Intl.NumberFormat.formatString", + "kind": "value", + "name": "formatString", + "docstrings": [], + "signature": "let formatString: (t, string) => string" + }, + { + "id": "Core.Intl.NumberFormat.formatStringToParts", + "kind": "value", + "name": "formatStringToParts", + "docstrings": [], + "signature": "let formatStringToParts: (t, string) => array" + } + ] + }, + "core/intl/locale": { + "id": "Core.Intl.Locale", + "name": "Locale", + "docstrings": [], + "items": [ + { + "id": "Core.Intl.Locale.t", + "kind": "type", + "name": "t", + "docstrings": [], + "signature": "type t" + }, + { + "id": "Core.Intl.Locale.options", + "kind": "type", + "name": "options", + "docstrings": [], + "signature": "type options = {\n baseName?: string,\n calendar?: Core__Intl__Common.calendar,\n collation?: Core__Intl__Common.collation,\n hourCycle?: [#h11 | #h12 | #h23 | #h24],\n caseFirst?: [#\"false\" | #lower | #upper],\n numberingSystem?: Core__Intl__Common.numberingSystem,\n numeric?: bool,\n language?: string,\n script?: string,\n region?: string,\n}" + }, + { + "id": "Core.Intl.Locale.make", + "kind": "value", + "name": "make", + "docstrings": [], + "signature": "let make: string => t" + }, + { + "id": "Core.Intl.Locale.makeWithOptions", + "kind": "value", + "name": "makeWithOptions", + "docstrings": [], + "signature": "let makeWithOptions: (string, options) => t" + }, + { + "id": "Core.Intl.Locale.baseName", + "kind": "value", + "name": "baseName", + "docstrings": [], + "signature": "let baseName: t => string" + }, + { + "id": "Core.Intl.Locale.calendar", + "kind": "value", + "name": "calendar", + "docstrings": [], + "signature": "let calendar: t => option" + }, + { + "id": "Core.Intl.Locale.caseFirst", + "kind": "value", + "name": "caseFirst", + "docstrings": [], + "signature": "let caseFirst: t => option" + }, + { + "id": "Core.Intl.Locale.collation", + "kind": "value", + "name": "collation", + "docstrings": [], + "signature": "let collation: t => option" + }, + { + "id": "Core.Intl.Locale.hourCycle", + "kind": "value", + "name": "hourCycle", + "docstrings": [], + "signature": "let hourCycle: t => option" + }, + { + "id": "Core.Intl.Locale.language", + "kind": "value", + "name": "language", + "docstrings": [], + "signature": "let language: t => string" + }, + { + "id": "Core.Intl.Locale.numberingSystem", + "kind": "value", + "name": "numberingSystem", + "docstrings": [], + "signature": "let numberingSystem: t => option" + }, + { + "id": "Core.Intl.Locale.numeric", + "kind": "value", + "name": "numeric", + "docstrings": [], + "signature": "let numeric: t => bool" + }, + { + "id": "Core.Intl.Locale.region", + "kind": "value", + "name": "region", + "docstrings": [], + "signature": "let region: t => option" + }, + { + "id": "Core.Intl.Locale.script", + "kind": "value", + "name": "script", + "docstrings": [], + "signature": "let script: t => option" + }, + { + "id": "Core.Intl.Locale.maximize", + "kind": "value", + "name": "maximize", + "docstrings": [], + "signature": "let maximize: t => t" + }, + { + "id": "Core.Intl.Locale.minimize", + "kind": "value", + "name": "minimize", + "docstrings": [], + "signature": "let minimize: t => t" + } + ] + }, + "core/intl/listformat": { + "id": "Core.Intl.ListFormat", + "name": "ListFormat", + "docstrings": [], + "items": [ + { + "id": "Core.Intl.ListFormat.t", + "kind": "type", + "name": "t", + "docstrings": [], + "signature": "type t" + }, + { + "id": "Core.Intl.ListFormat.listType", + "kind": "type", + "name": "listType", + "docstrings": [], + "signature": "type listType = [#conjunction | #disjunction | #unit]" + }, + { + "id": "Core.Intl.ListFormat.style", + "kind": "type", + "name": "style", + "docstrings": [], + "signature": "type style = [#long | #narrow | #short]" + }, + { + "id": "Core.Intl.ListFormat.options", + "kind": "type", + "name": "options", + "docstrings": [], + "signature": "type options = {\n localeMatcher?: Core__Intl__Common.localeMatcher,\n \\\"type\"?: listType,\n style?: style,\n}" + }, + { + "id": "Core.Intl.ListFormat.listPartComponentType", + "kind": "type", + "name": "listPartComponentType", + "docstrings": [], + "signature": "type listPartComponentType = [#element | #literal]" + }, + { + "id": "Core.Intl.ListFormat.listPart", + "kind": "type", + "name": "listPart", + "docstrings": [], + "signature": "type listPart = {\n \\\"type\": listPartComponentType,\n value: string,\n}" + }, + { + "id": "Core.Intl.ListFormat.resolvedOptions", + "kind": "type", + "name": "resolvedOptions", + "docstrings": [], + "signature": "type resolvedOptions = {\n locale: string,\n style: style,\n \\\"type\": listType,\n}" + }, + { + "id": "Core.Intl.ListFormat.supportedLocalesOptions", + "kind": "type", + "name": "supportedLocalesOptions", + "docstrings": [], + "signature": "type supportedLocalesOptions = {\n localeMatcher: Core__Intl__Common.localeMatcher,\n}" + }, + { + "id": "Core.Intl.ListFormat.make", + "kind": "value", + "name": "make", + "docstrings": [], + "signature": "let make: unit => t" + }, + { + "id": "Core.Intl.ListFormat.makeWithLocale", + "kind": "value", + "name": "makeWithLocale", + "docstrings": [], + "signature": "let makeWithLocale: string => t" + }, + { + "id": "Core.Intl.ListFormat.makeWithLocales", + "kind": "value", + "name": "makeWithLocales", + "docstrings": [], + "signature": "let makeWithLocales: array => t" + }, + { + "id": "Core.Intl.ListFormat.makeWithLocaleAndOptions", + "kind": "value", + "name": "makeWithLocaleAndOptions", + "docstrings": [], + "signature": "let makeWithLocaleAndOptions: (string, options) => t" + }, + { + "id": "Core.Intl.ListFormat.makeWithLocalesAndOptions", + "kind": "value", + "name": "makeWithLocalesAndOptions", + "docstrings": [], + "signature": "let makeWithLocalesAndOptions: (array, options) => t" + }, + { + "id": "Core.Intl.ListFormat.makeWithOptions", + "kind": "value", + "name": "makeWithOptions", + "docstrings": [], + "signature": "let makeWithOptions: options => t" + }, + { + "id": "Core.Intl.ListFormat.supportedLocalesOf", + "kind": "value", + "name": "supportedLocalesOf", + "docstrings": [], + "signature": "let supportedLocalesOf: array => t" + }, + { + "id": "Core.Intl.ListFormat.supportedLocalesOfWithOptions", + "kind": "value", + "name": "supportedLocalesOfWithOptions", + "docstrings": [], + "signature": "let supportedLocalesOfWithOptions: (array, supportedLocalesOptions) => t" + }, + { + "id": "Core.Intl.ListFormat.resolvedOptions", + "kind": "value", + "name": "resolvedOptions", + "docstrings": [], + "signature": "let resolvedOptions: t => resolvedOptions" + }, + { + "id": "Core.Intl.ListFormat.format", + "kind": "value", + "name": "format", + "docstrings": [], + "signature": "let format: (t, array) => string" + }, + { + "id": "Core.Intl.ListFormat.formatToParts", + "kind": "value", + "name": "formatToParts", + "docstrings": [], + "signature": "let formatToParts: (t, array) => array" + } + ] + }, + "core/intl/datetimeformat": { + "id": "Core.Intl.DateTimeFormat", + "name": "DateTimeFormat", + "docstrings": [], + "items": [ + { + "id": "Core.Intl.DateTimeFormat.t", + "kind": "type", + "name": "t", + "docstrings": [], + "signature": "type t" + }, + { + "id": "Core.Intl.DateTimeFormat.dateStyle", + "kind": "type", + "name": "dateStyle", + "docstrings": [], + "signature": "type dateStyle = [#full | #long | #medium | #short]" + }, + { + "id": "Core.Intl.DateTimeFormat.timeStyle", + "kind": "type", + "name": "timeStyle", + "docstrings": [], + "signature": "type timeStyle = [#full | #long | #medium | #short]" }, { - "id": "Core.Intl.NumberFormat.formatIntToParts", - "kind": "value", - "name": "formatIntToParts", + "id": "Core.Intl.DateTimeFormat.dayPeriod", + "kind": "type", + "name": "dayPeriod", "docstrings": [], - "signature": "let formatIntToParts: (t, int) => array<{\\\"type\\\": string, \\\"value\\\": string}>" + "signature": "type dayPeriod = [#long | #narrow | #short]" }, { - "id": "Core.Intl.NumberFormat.formatBigInt", - "kind": "value", - "name": "formatBigInt", + "id": "Core.Intl.DateTimeFormat.weekday", + "kind": "type", + "name": "weekday", "docstrings": [], - "signature": "let formatBigInt: (t, Core__BigInt.t) => string" + "signature": "type weekday = [#long | #narrow | #short]" }, { - "id": "Core.Intl.NumberFormat.formatBigIntToParts", - "kind": "value", - "name": "formatBigIntToParts", + "id": "Core.Intl.DateTimeFormat.era", + "kind": "type", + "name": "era", "docstrings": [], - "signature": "let formatBigIntToParts: (\\n t,\\n Core__BigInt.t,\\n) => array<{\\\"type\\\": string, \\\"value\\\": string}>" - } - ] - }, - "core/intl/locale": { - "id": "Core.Intl.Locale", - "name": "Locale", - "docstrings": [], - "items": [ + "signature": "type era = [#long | #narrow | #short]" + }, { - "id": "Core.Intl.Locale.t", + "id": "Core.Intl.DateTimeFormat.year", "kind": "type", - "name": "t", + "name": "year", "docstrings": [], - "signature": "type t" + "signature": "type year = [#\"2-digit\" | #numeric]" }, { - "id": "Core.Intl.Locale.make", - "kind": "value", - "name": "make", + "id": "Core.Intl.DateTimeFormat.month", + "kind": "type", + "name": "month", "docstrings": [], - "signature": "let make: string => t" + "signature": "type month = [\n | #\"2-digit\"\n | #long\n | #narrow\n | #numeric\n | #short\n]" }, { - "id": "Core.Intl.Locale.makeWithOptions", - "kind": "value", - "name": "makeWithOptions", + "id": "Core.Intl.DateTimeFormat.day", + "kind": "type", + "name": "day", "docstrings": [], - "signature": "let makeWithOptions: (string, {..}) => t" + "signature": "type day = [#\"2-digit\" | #numeric]" }, { - "id": "Core.Intl.Locale.baseName", - "kind": "value", - "name": "baseName", + "id": "Core.Intl.DateTimeFormat.hour", + "kind": "type", + "name": "hour", "docstrings": [], - "signature": "let baseName: t => string" + "signature": "type hour = [#\"2-digit\" | #numeric]" }, { - "id": "Core.Intl.Locale.calendar", - "kind": "value", - "name": "calendar", + "id": "Core.Intl.DateTimeFormat.minute", + "kind": "type", + "name": "minute", "docstrings": [], - "signature": "let calendar: t => option" + "signature": "type minute = [#\"2-digit\" | #numeric]" }, { - "id": "Core.Intl.Locale.caseFirst", - "kind": "value", - "name": "caseFirst", + "id": "Core.Intl.DateTimeFormat.second", + "kind": "type", + "name": "second", "docstrings": [], - "signature": "let caseFirst: t => option" + "signature": "type second = [#\"2-digit\" | #numeric]" }, { - "id": "Core.Intl.Locale.collation", - "kind": "value", - "name": "collation", - "docstrings": [], - "signature": "let collation: t => option" + "id": "Core.Intl.DateTimeFormat.timeZoneName", + "kind": "type", + "name": "timeZoneName", + "docstrings": [ + "Firefox also supports IANA time zone names here\nNode v19+ supports \"shortOffset\", \"shortGeneric\", \"longOffset\", and \"longGeneric\"." + ], + "signature": "type timeZoneName = [\n | #long\n | #longGeneric\n | #longOffset\n | #short\n | #shortGeneric\n | #shortOffset\n]" }, { - "id": "Core.Intl.Locale.hourCycle", - "kind": "value", + "id": "Core.Intl.DateTimeFormat.hourCycle", + "kind": "type", "name": "hourCycle", "docstrings": [], - "signature": "let hourCycle: t => option" + "signature": "type hourCycle = [#h11 | #h12 | #h23 | #h24]" }, { - "id": "Core.Intl.Locale.language", - "kind": "value", - "name": "language", + "id": "Core.Intl.DateTimeFormat.formatMatcher", + "kind": "type", + "name": "formatMatcher", "docstrings": [], - "signature": "let language: t => string" + "signature": "type formatMatcher = [#basic | #bestFit]" }, { - "id": "Core.Intl.Locale.numberingSystem", - "kind": "value", - "name": "numberingSystem", + "id": "Core.Intl.DateTimeFormat.fractionalSecondDigits", + "kind": "type", + "name": "fractionalSecondDigits", "docstrings": [], - "signature": "let numberingSystem: t => option" + "signature": "type fractionalSecondDigits = [#0 | #1 | #2 | #3]" }, { - "id": "Core.Intl.Locale.numeric", - "kind": "value", - "name": "numeric", + "id": "Core.Intl.DateTimeFormat.options", + "kind": "type", + "name": "options", "docstrings": [], - "signature": "let numeric: t => bool" + "signature": "type options = {\n dateStyle?: dateStyle,\n timeStyle?: timeStyle,\n calendar?: Core__Intl__Common.calendar,\n dayPeriod?: dayPeriod,\n numberingSystem?: Core__Intl__Common.numberingSystem,\n localeMatcher?: Core__Intl__Common.localeMatcher,\n timeZone?: string,\n hour12?: bool,\n hourCycle?: hourCycle,\n formatMatcher?: formatMatcher,\n weekday?: weekday,\n era?: era,\n year?: year,\n month?: month,\n day?: day,\n hour?: hour,\n minute?: minute,\n second?: second,\n fractionalSecondDigits?: fractionalSecondDigits,\n timeZoneName?: timeZoneName,\n}" }, { - "id": "Core.Intl.Locale.region", - "kind": "value", - "name": "region", + "id": "Core.Intl.DateTimeFormat.resolvedOptions", + "kind": "type", + "name": "resolvedOptions", "docstrings": [], - "signature": "let region: t => option" + "signature": "type resolvedOptions = {\n dateStyle?: dateStyle,\n timeStyle?: timeStyle,\n weekday?: weekday,\n era?: era,\n year?: year,\n month?: month,\n day?: day,\n hour?: hour,\n minute?: minute,\n second?: second,\n fractionalSecondDigits?: fractionalSecondDigits,\n timeZoneName?: timeZoneName,\n calendar: Core__Intl__Common.calendar,\n hour12: bool,\n hourCycle: hourCycle,\n locale: string,\n numberingSystem: Core__Intl__Common.numberingSystem,\n timeZone: string,\n}" }, { - "id": "Core.Intl.Locale.script", - "kind": "value", - "name": "script", + "id": "Core.Intl.DateTimeFormat.supportedLocalesOptions", + "kind": "type", + "name": "supportedLocalesOptions", "docstrings": [], - "signature": "let script: t => option" + "signature": "type supportedLocalesOptions = {\n localeMatcher: Core__Intl__Common.localeMatcher,\n}" }, { - "id": "Core.Intl.Locale.maximize", - "kind": "value", - "name": "maximize", + "id": "Core.Intl.DateTimeFormat.dateTimeComponent", + "kind": "type", + "name": "dateTimeComponent", "docstrings": [], - "signature": "let maximize: t => t" + "signature": "type dateTimeComponent = [\n | #day\n | #dayPeriod\n | #era\n | #fractionalSecond\n | #hour\n | #literal\n | #minute\n | #month\n | #relatedYear\n | #second\n | #timeZone\n | #weekday\n | #year\n | #yearName\n]" }, { - "id": "Core.Intl.Locale.minimize", - "kind": "value", - "name": "minimize", + "id": "Core.Intl.DateTimeFormat.dateTimePart", + "kind": "type", + "name": "dateTimePart", "docstrings": [], - "signature": "let minimize: t => t" - } - ] - }, - "core/intl/datetimeformat": { - "id": "Core.Intl.DateTimeFormat", - "name": "DateTimeFormat", - "docstrings": [], - "items": [ + "signature": "type dateTimePart = {\n \\\"type\": dateTimeComponent,\n value: string,\n}" + }, { - "id": "Core.Intl.DateTimeFormat.t", + "id": "Core.Intl.DateTimeFormat.dateTimeRangeSource", "kind": "type", - "name": "t", + "name": "dateTimeRangeSource", "docstrings": [], - "signature": "type t" + "signature": "type dateTimeRangeSource = [\n | #endRange\n | #shared\n | #startRange\n]" + }, + { + "id": "Core.Intl.DateTimeFormat.dateTimeRangePart", + "kind": "type", + "name": "dateTimeRangePart", + "docstrings": [], + "signature": "type dateTimeRangePart = {\n \\\"type\": dateTimeComponent,\n value: string,\n source: dateTimeRangeSource,\n}" }, { "id": "Core.Intl.DateTimeFormat.make", @@ -713,21 +1534,21 @@ "kind": "value", "name": "makeWithLocaleAndOptions", "docstrings": [], - "signature": "let makeWithLocaleAndOptions: (string, {..}) => t" + "signature": "let makeWithLocaleAndOptions: (string, options) => t" }, { "id": "Core.Intl.DateTimeFormat.makeWithLocalesAndOptions", "kind": "value", "name": "makeWithLocalesAndOptions", "docstrings": [], - "signature": "let makeWithLocalesAndOptions: (array, {..}) => t" + "signature": "let makeWithLocalesAndOptions: (array, options) => t" }, { "id": "Core.Intl.DateTimeFormat.makeWithOptions", "kind": "value", "name": "makeWithOptions", "docstrings": [], - "signature": "let makeWithOptions: {..} => t" + "signature": "let makeWithOptions: options => t" }, { "id": "Core.Intl.DateTimeFormat.supportedLocalesOf", @@ -741,14 +1562,14 @@ "kind": "value", "name": "supportedLocalesOfWithOptions", "docstrings": [], - "signature": "let supportedLocalesOfWithOptions: (array, {..}) => t" + "signature": "let supportedLocalesOfWithOptions: (array, supportedLocalesOptions) => t" }, { "id": "Core.Intl.DateTimeFormat.resolvedOptions", "kind": "value", "name": "resolvedOptions", "docstrings": [], - "signature": "let resolvedOptions: t => {..}" + "signature": "let resolvedOptions: t => resolvedOptions" }, { "id": "Core.Intl.DateTimeFormat.format", @@ -762,21 +1583,21 @@ "kind": "value", "name": "formatToParts", "docstrings": [], - "signature": "let formatToParts: (\\n t,\\n Core__Date.t,\\n) => array<{\\\"type\\\": string, \\\"value\\\": string}>" + "signature": "let formatToParts: (\n t,\n Core__Date.t,\n) => array<{\"type\": string, \"value\": string}>" }, { "id": "Core.Intl.DateTimeFormat.formatRange", "kind": "value", "name": "formatRange", "docstrings": [], - "signature": "let formatRange: (\\n t,\\n ~startDate: Core__Date.t,\\n ~endDate: Core__Date.t,\\n) => string" + "signature": "let formatRange: (\n t,\n ~startDate: Core__Date.t,\n ~endDate: Core__Date.t,\n) => string" }, { "id": "Core.Intl.DateTimeFormat.formatRangeToParts", "kind": "value", "name": "formatRangeToParts", "docstrings": [], - "signature": "let formatRangeToParts: (\\n t,\\n ~startDate: Core__Date.t,\\n ~endDate: Core__Date.t,\\n) => array<\\n {\\\"source\\\": string, \\\"type\\\": string, \\\"value\\\": string},\\n>" + "signature": "let formatRangeToParts: (\n t,\n ~startDate: Core__Date.t,\n ~endDate: Core__Date.t,\n) => array<\n {\"source\": string, \"type\": string, \"value\": string},\n>" } ] }, @@ -792,6 +1613,48 @@ "docstrings": [], "signature": "type t" }, + { + "id": "Core.Intl.Collator.usage", + "kind": "type", + "name": "usage", + "docstrings": [], + "signature": "type usage = [#search | #sort]" + }, + { + "id": "Core.Intl.Collator.sensitivity", + "kind": "type", + "name": "sensitivity", + "docstrings": [], + "signature": "type sensitivity = [#accent | #base | #case | #variant]" + }, + { + "id": "Core.Intl.Collator.caseFirst", + "kind": "type", + "name": "caseFirst", + "docstrings": [], + "signature": "type caseFirst = [#\"false\" | #lower | #upper]" + }, + { + "id": "Core.Intl.Collator.options", + "kind": "type", + "name": "options", + "docstrings": [], + "signature": "type options = {\n localeMatcher?: Core__Intl__Common.localeMatcher,\n usage?: usage,\n sensitivity?: sensitivity,\n ignorePunctuation?: bool,\n numeric?: bool,\n caseFirst?: caseFirst,\n}" + }, + { + "id": "Core.Intl.Collator.resolvedOptions", + "kind": "type", + "name": "resolvedOptions", + "docstrings": [], + "signature": "type resolvedOptions = {\n locale: string,\n usage: usage,\n sensitivity: sensitivity,\n ignorePunctuation: bool,\n collation: [\n | #compat\n | #default\n | #dict\n | #emoji\n | #eor\n | #phonebk\n | #phonetic\n | #pinyin\n | #stroke\n | #trad\n | #unihan\n | #zhuyin\n ],\n numeric?: bool,\n caseFirst?: caseFirst,\n}" + }, + { + "id": "Core.Intl.Collator.supportedLocalesOptions", + "kind": "type", + "name": "supportedLocalesOptions", + "docstrings": [], + "signature": "type supportedLocalesOptions = {\n localeMatcher: Core__Intl__Common.localeMatcher,\n}" + }, { "id": "Core.Intl.Collator.make", "kind": "value", @@ -818,21 +1681,21 @@ "kind": "value", "name": "makeWithLocaleAndOptions", "docstrings": [], - "signature": "let makeWithLocaleAndOptions: (string, {..}) => t" + "signature": "let makeWithLocaleAndOptions: (string, options) => t" }, { "id": "Core.Intl.Collator.makeWithLocalesAndOptions", "kind": "value", "name": "makeWithLocalesAndOptions", "docstrings": [], - "signature": "let makeWithLocalesAndOptions: (array, {..}) => t" + "signature": "let makeWithLocalesAndOptions: (array, options) => t" }, { "id": "Core.Intl.Collator.makeWithOptions", "kind": "value", "name": "makeWithOptions", "docstrings": [], - "signature": "let makeWithOptions: {..} => t" + "signature": "let makeWithOptions: options => t" }, { "id": "Core.Intl.Collator.supportedLocalesOf", @@ -846,14 +1709,14 @@ "kind": "value", "name": "supportedLocalesOfWithOptions", "docstrings": [], - "signature": "let supportedLocalesOfWithOptions: (array, {..}) => t" + "signature": "let supportedLocalesOfWithOptions: (array, supportedLocalesOptions) => t" }, { "id": "Core.Intl.Collator.resolvedOptions", "kind": "value", "name": "resolvedOptions", "docstrings": [], - "signature": "let resolvedOptions: t => {..}" + "signature": "let resolvedOptions: t => resolvedOptions" }, { "id": "Core.Intl.Collator.compare", @@ -1183,7 +2046,7 @@ "docstrings": [ "A type representing a JavaScript type." ], - "signature": "type t =\\n | Bool(bool)\\n | Null\\n | String(string)\\n | Number(float)\\n | Object(Core__Dict.t)\\n | Array(array)" + "signature": "type t =\n | Bool(bool)\n | Null\n | String(string)\n | Number(float)\n | Object(Core__Dict.t)\n | Array(array)" }, { "id": "Core.JSON.Classify.classify", @@ -1226,7 +2089,7 @@ "docstrings": [ "The type representing a classified JavaScript value." ], - "signature": "type t =\\n | Bool(bool)\\n | Null\\n | Undefined\\n | String(string)\\n | Number(float)\\n | Object(object)\\n | Function(function)\\n | Symbol(Core__Symbol.t)\\n | BigInt(Core__BigInt.t)" + "signature": "type t =\n | Bool(bool)\n | Null\n | Undefined\n | String(string)\n | Number(float)\n | Object(object)\n | Function(function)\n | Symbol(Core__Symbol.t)\n | BigInt(Core__BigInt.t)" }, { "id": "Core.Type.Classify.classify", @@ -1292,7 +2155,9 @@ "core/math/int": { "id": "Core.Math.Int", "name": "Int", - "docstrings": [], + "docstrings": [ + "Provide Math utilities for `int`" + ], "items": [ { "id": "Core.Math.Int.abs", @@ -1335,7 +2200,7 @@ "kind": "value", "name": "minMany", "docstrings": [ - "`minMany(arr)` returns the minimum of the integers in the given array `arr`.\n Returns `Infinity` if `arr` is empty.\n See [`Math.min`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/min) on MDN.\n\n ## Examples\n\n ```rescript\n Math.Int.minMany([1, 2]) // 1\n Math.Int.minMany([-1, -2]) // -2\n Math.Int.minMany([])->Float.isFinite // false\n ```" + "`minMany(arr)` returns the minimum of the integers in the given array `arr`.\n Returns `Infinity` if `arr` is empty.\n See [`Math.min`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/min) on MDN.\n\n ## Examples\n\n ```rescript\n Math.Int.minMany([1, 2]) // 1\n Math.Int.minMany([-1, -2]) // -2\n Math.Int.minMany([])->Int.toFloat->Float.isFinite // false\n ```" ], "signature": "let minMany: array => int" }, @@ -1353,7 +2218,7 @@ "kind": "value", "name": "maxMany", "docstrings": [ - "`maxMany(arr)` returns the maximum of the integers in the given array `arr`.\n Returns `Infinity` if `arr` is empty.\n See [`Math.max`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max) on MDN.\n\n ## Examples\n\n ```rescript\n Math.Int.maxMany([1, 2]) // 2\n Math.Int.maxMany([-1, -2]) // -1\n Math.Int.maxMany([])->Float.isFinite // false\n ```" + "`maxMany(arr)` returns the maximum of the integers in the given array `arr`.\n Returns `Infinity` if `arr` is empty.\n See [`Math.max`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max) on MDN.\n\n ## Examples\n\n ```rescript\n Math.Int.maxMany([1, 2]) // 2\n Math.Int.maxMany([-1, -2]) // -1\n Math.Int.maxMany([])->Int.toFloat->Float.isFinite // false\n ```" ], "signature": "let maxMany: array => int" }, @@ -1398,7 +2263,9 @@ "core/math/constants": { "id": "Core.Math.Constants", "name": "Constants", - "docstrings": [], + "docstrings": [ + "Mathematical Constants" + ], "items": [ { "id": "Core.Math.Constants.e", @@ -1414,7 +2281,7 @@ "kind": "value", "name": "ln2", "docstrings": [ - "`Math.Constants.ln2` returns Natural logarithm of 2, ≈ 0.6931471805599453.\n See [`Math.LN2`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LN2) on MDN.\n\n ## Examples\n\n ```rescript\n Math.Constants.LN2\n ```" + "`Math.Constants.ln2` returns Natural logarithm of 2, ≈ 0.6931471805599453.\n See [`Math.LN2`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LN2) on MDN.\n\n ## Examples\n\n ```rescript\n Math.Constants.ln2\n ```" ], "signature": "let ln2: float" }, @@ -1502,7 +2369,9 @@ "core/float/constants": { "id": "Core.Float.Constants", "name": "Constants", - "docstrings": [], + "docstrings": [ + "Float constants." + ], "items": [ { "id": "Core.Float.Constants.nan", @@ -1686,7 +2555,7 @@ "docstrings": [ "Returns the time, in milliseconds, since UNIX epoch (January 1, 1970 00:00:00 UTC).\n Be aware of using a value for year < 100, because it behaves inconsistent (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#interpretation_of_two-digit_years).\n Months are 0-indexed (0 = January, 11 = December).\n Values, which are out of range, will be carried over to the next bigger unit (s. example).\n\n ## Examples\n ```rescript\n Date.UTC.makeWithYMDH(~year=2023, ~month=1, ~date=20, ~hours=16)\n // 1676908800000\n\n Date.UTC.makeWithYMDH(~year=2023, ~month=1, ~date=20, ~hours=24)\n // 1676937600000\n\n Date.UTC.makeWithYMDH(~year=2023, ~month=1, ~date=20, ~hours=-1)\n // 1676847600000\n ```" ], - "signature": "let makeWithYMDH: (\\n ~year: int,\\n ~month: int,\\n ~date: int,\\n ~hours: int,\\n) => msSinceEpoch" + "signature": "let makeWithYMDH: (\n ~year: int,\n ~month: int,\n ~date: int,\n ~hours: int,\n) => msSinceEpoch" }, { "id": "Core.Date.UTC.makeWithYMDHM", @@ -1695,7 +2564,7 @@ "docstrings": [ "Returns the time, in milliseconds, since UNIX epoch (January 1, 1970 00:00:00 UTC).\n Be aware of using a value for year < 100, because it behaves inconsistent (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#interpretation_of_two-digit_years).\n Months are 0-indexed (0 = January, 11 = December).\n Values, which are out of range, will be carried over to the next bigger unit (s. example).\n\n ## Examples\n ```rescript\n Date.UTC.makeWithYMDHM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40)\n // 1676911200000\n\n Date.UTC.makeWithYMDHM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=60)\n // 1676912400000\n\n Date.UTC.makeWithYMDHM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=-1)\n // 1676908740000\n ```" ], - "signature": "let makeWithYMDHM: (\\n ~year: int,\\n ~month: int,\\n ~date: int,\\n ~hours: int,\\n ~minutes: int,\\n) => msSinceEpoch" + "signature": "let makeWithYMDHM: (\n ~year: int,\n ~month: int,\n ~date: int,\n ~hours: int,\n ~minutes: int,\n) => msSinceEpoch" }, { "id": "Core.Date.UTC.makeWithYMDHMS", @@ -1704,16 +2573,16 @@ "docstrings": [ "Returns the time, in milliseconds, since UNIX epoch (January 1, 1970 00:00:00 UTC).\n Be aware of using a value for year < 100, because it behaves inconsistent (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#interpretation_of_two-digit_years).\n Months are 0-indexed (0 = January, 11 = December).\n Values, which are out of range, will be carried over to the next bigger unit (s. example).\n\n ## Examples\n ```rescript\n Date.UTC.makeWithYMDHMS(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=0)\n // 1676911200000\n\n Date.UTC.makeWithYMDHMS(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=60)\n // 1676911260000\n\n Date.UTC.makeWithYMDHMS(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=-1)\n // 1676911199000\n ```" ], - "signature": "let makeWithYMDHMS: (\\n ~year: int,\\n ~month: int,\\n ~date: int,\\n ~hours: int,\\n ~minutes: int,\\n ~seconds: int,\\n) => msSinceEpoch" + "signature": "let makeWithYMDHMS: (\n ~year: int,\n ~month: int,\n ~date: int,\n ~hours: int,\n ~minutes: int,\n ~seconds: int,\n) => msSinceEpoch" }, { "id": "Core.Date.UTC.makeWithYMDHMSM", "kind": "value", "name": "makeWithYMDHMSM", "docstrings": [ - "Returns the time, in milliseconds, since UNIX epoch (January 1, 1970 00:00:00 UTC).\n Be aware of using a value for year < 100, because it behaves inconsistent (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#interpretation_of_two-digit_years).\n Months are 0-indexed (0 = January, 11 = December).\n Values, which are out of range, will be carried over to the next bigger unit (s. example).\n\n ## Examples\n ```rescript\n Date.UTC.makeWithYMDHMSM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=0, ~milliseconds=0)->Console.log\n // 1676911200000\n\n Date.UTC.makeWithYMDHMSM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=0, ~milliseconds=1000)->Console.log\n // 1676911201000\n\n Date.UTC.makeWithYMDHMSM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=0, ~milliseconds=-1)->Console.log\n // 1676911199999\n ````" + "Returns the time, in milliseconds, since UNIX epoch (January 1, 1970 00:00:00 UTC).\n Be aware of using a value for year < 100, because it behaves inconsistent (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#interpretation_of_two-digit_years).\n Months are 0-indexed (0 = January, 11 = December).\n Values, which are out of range, will be carried over to the next bigger unit (s. example).\n\n ## Examples\n ```rescript\n Date.UTC.makeWithYMDHMSM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=0, ~milliseconds=0)->Console.log\n // 1676911200000\n\n Date.UTC.makeWithYMDHMSM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=0, ~milliseconds=1000)->Console.log\n // 1676911201000\n\n Date.UTC.makeWithYMDHMSM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=0, ~milliseconds=-1)->Console.log\n // 1676911199999\n ```" ], - "signature": "let makeWithYMDHMSM: (\\n ~year: int,\\n ~month: int,\\n ~date: int,\\n ~hours: int,\\n ~minutes: int,\\n ~seconds: int,\\n ~milliseconds: int,\\n) => msSinceEpoch" + "signature": "let makeWithYMDHMSM: (\n ~year: int,\n ~month: int,\n ~date: int,\n ~hours: int,\n ~minutes: int,\n ~seconds: int,\n ~milliseconds: int,\n) => msSinceEpoch" } ] }, @@ -1722,39 +2591,30 @@ "name": "Result", "docstrings": [], "items": [ - { - "id": "Core.Result.t", - "kind": "type", - "name": "t", - "docstrings": [ - "Result types are really useful to describe the result of a certain operation\n without relying on exceptions or `option` types.\n\n This module gives you useful utilities to create and combine `Result` data." - ], - "signature": "type t<'a, 'b> = result<'a, 'b> = Ok('a) | Error('b)" - }, { "id": "Core.Result.getExn", "kind": "value", "name": "getExn", "docstrings": [ - "`getExn(res)`: when `res` is `Ok(n)`, returns `n` when `res` is `Error(m)`, raise an exception\n\n ```res example\n Result.getExn(Result.Ok(42)) == 42\n\n Result.getExn(Result.Error(\"Invalid data\")) /* raises exception */\n ```" + "Result types are really useful to describe the result of a certain operation\n without relying on exceptions or `option` types.\n\n This module gives you useful utilities to create and combine `Result` data." ], - "signature": "let getExn: t<'a, 'b> => 'a" + "signature": "let getExn: result<'a, 'b> => 'a" }, { "id": "Core.Result.mapOr", "kind": "value", "name": "mapOr", "docstrings": [ - "`mapOr(res, default, f)`: When res is `Ok(n)`, returns `f(n)`,\n otherwise `default`.\n\n ```res example\n let ok = Result.Ok(42)\n Result.mapOr(ok, 0, (x) => x / 2) == 21\n\n let error = Result.Error(\"Invalid data\")\n Result.mapOr(error, 0, (x) => x / 2) == 0\n ```" + "`mapOr(res, default, f)`: When res is `Ok(n)`, returns `f(n)`, otherwise `default`.\n\n## Examples\n\n```rescript\nlet ok = Ok(42)\nResult.mapOr(ok, 0, (x) => x / 2) == 21\n\nlet error = Error(\"Invalid data\")\nResult.mapOr(error, 0, (x) => x / 2) == 0\n```" ], - "signature": "let mapOr: (t<'a, 'c>, 'b, 'a => 'b) => 'b" + "signature": "let mapOr: (result<'a, 'c>, 'b, 'a => 'b) => 'b" }, { "id": "Core.Result.mapWithDefault", "kind": "value", "name": "mapWithDefault", "docstrings": [], - "signature": "let mapWithDefault: (t<'a, 'c>, 'b, 'a => 'b) => 'b", + "signature": "let mapWithDefault: (result<'a, 'c>, 'b, 'a => 'b) => 'b", "deprecated": "Use mapOr instead" }, { @@ -1762,34 +2622,34 @@ "kind": "value", "name": "map", "docstrings": [ - "`map(res, f)`: When res is `Ok(n)`, returns `Ok(f(n))`. Otherwise returns res\n unchanged. Function `f` takes a value of the same type as `n` and returns an\n ordinary value.\n\n ```res example\n let f = (x) => sqrt(Int.toFloat(x))\n\n Result.map(Ok(64), f) == Ok(8.0)\n\n Result.map(Error(\"Invalid data\"), f) == Error(\"Invalid data\")\n ```" + "`map(res, f)`: When res is `Ok(n)`, returns `Ok(f(n))`. Otherwise returns res\nunchanged. Function `f` takes a value of the same type as `n` and returns an\nordinary value.\n\n## Examples\n\n```rescript\nlet f = (x) => sqrt(Int.toFloat(x))\n\nResult.map(Ok(64), f) == Ok(8.0)\n\nResult.map(Error(\"Invalid data\"), f) == Error(\"Invalid data\")\n```" ], - "signature": "let map: (t<'a, 'c>, 'a => 'b) => t<'b, 'c>" + "signature": "let map: (result<'a, 'c>, 'a => 'b) => result<'b, 'c>" }, { "id": "Core.Result.flatMap", "kind": "value", "name": "flatMap", "docstrings": [ - "`flatMap(res, f)`: When res is `Ok(n)`, returns `f(n)`. Otherwise, returns res\n unchanged. Function `f` takes a value of the same type as `n` and returns a\n `Result`.\n\n ```res example\n let recip = (x) =>\n if (x !== 0.0) {\n Result.Ok(1.0 /. x)\n } else {\n Result.Error(\"Divide by zero\")\n }\n\n Result.flatMap(Ok(2.0), recip) == Ok(0.5)\n\n Result.flatMap(Ok(0.0), recip) == Error(\"Divide by zero\")\n\n Result.flatMap(Error(\"Already bad\"), recip) == Error(\"Already bad\")\n ```" + "`flatMap(res, f)`: When res is `Ok(n)`, returns `f(n)`. Otherwise, returns res\nunchanged. Function `f` takes a value of the same type as `n` and returns a\n`Result`.\n\n## Examples\n\n```rescript\nlet recip = (x) =>\n if (x !== 0.0) {\n Ok(1.0 /. x)\n } else {\n Error(\"Divide by zero\")\n }\n\nResult.flatMap(Ok(2.0), recip) == Ok(0.5)\n\nResult.flatMap(Ok(0.0), recip) == Error(\"Divide by zero\")\n\nResult.flatMap(Error(\"Already bad\"), recip) == Error(\"Already bad\")\n```" ], - "signature": "let flatMap: (t<'a, 'c>, 'a => t<'b, 'c>) => t<'b, 'c>" + "signature": "let flatMap: (result<'a, 'c>, 'a => result<'b, 'c>) => result<'b, 'c>" }, { "id": "Core.Result.getOr", "kind": "value", "name": "getOr", "docstrings": [ - "`getOr(res, defaultValue)`: If `res` is `Ok(n)`, returns `n`,\n otherwise `default`\n\n ```res example\n Result.getOr(Ok(42), 0) == 42\n\n Result.getOr(Error(\"Invalid Data\"), 0) == 0\n ```" + "`getOr(res, defaultValue)`: If `res` is `Ok(n)`, returns `n`, otherwise `default`\n\n## Examples\n\n```rescript\nResult.getOr(Ok(42), 0) == 42\n\nResult.getOr(Error(\"Invalid Data\"), 0) == 0\n```" ], - "signature": "let getOr: (t<'a, 'b>, 'a) => 'a" + "signature": "let getOr: (result<'a, 'b>, 'a) => 'a" }, { "id": "Core.Result.getWithDefault", "kind": "value", "name": "getWithDefault", "docstrings": [], - "signature": "let getWithDefault: (t<'a, 'b>, 'a) => 'a", + "signature": "let getWithDefault: (result<'a, 'b>, 'a) => 'a", "deprecated": "Use getOr instead" }, { @@ -1797,36 +2657,36 @@ "kind": "value", "name": "isOk", "docstrings": [ - "`isOk(res)`: Returns `true` if `res` is of the form `Ok(n)`, `false` if it is\n the `Error(e)` variant." + "`isOk(res)`: Returns `true` if `res` is of the form `Ok(n)`, `false` if it is the `Error(e)` variant." ], - "signature": "let isOk: t<'a, 'b> => bool" + "signature": "let isOk: result<'a, 'b> => bool" }, { "id": "Core.Result.isError", "kind": "value", "name": "isError", "docstrings": [ - "`isError(res)`: Returns `true` if `res` is of the form `Error(e)`, `false` if\n it is the `Ok(n)` variant." + "`isError(res)`: Returns `true` if `res` is of the form `Error(e)`, `false` if it is the `Ok(n)` variant." ], - "signature": "let isError: t<'a, 'b> => bool" + "signature": "let isError: result<'a, 'b> => bool" }, { "id": "Core.Result.equal", "kind": "value", "name": "equal", "docstrings": [ - "`equal(res1, res2, f)`: Determine if two `Result` variables are equal with\n respect to an equality function. If `res1` and `res2` are of the form `Ok(n)`\n and `Ok(m)`, return the result of `f(n, m)`. If one of `res1` and `res2` are of\n the form `Error(e)`, return false If both `res1` and `res2` are of the form\n `Error(e)`, return true\n\n ```res example\n let good1 = Result.Ok(42)\n\n let good2 = Result.Ok(32)\n\n let bad1 = Result.Error(\"invalid\")\n\n let bad2 = Result.Error(\"really invalid\")\n\n let mod10equal = (a, b) => mod(a, 10) === mod(b, 10)\n\n Result.equal(good1, good2, mod10equal) == true\n\n Result.equal(good1, bad1, mod10equal) == false\n\n Result.equal(bad2, good2, mod10equal) == false\n\n Result.equal(bad1, bad2, mod10equal) == true\n ```" + "`equal(res1, res2, f)`: Determine if two `Result` variables are equal with\nrespect to an equality function. If `res1` and `res2` are of the form `Ok(n)`\nand `Ok(m)`, return the result of `f(n, m)`. If one of `res1` and `res2` are of\nthe form `Error(e)`, return false If both `res1` and `res2` are of the form\n`Error(e)`, return true\n\n## Examples\n\n```rescript\nlet good1 = Ok(42)\n\nlet good2 = Ok(32)\n\nlet bad1 = Error(\"invalid\")\n\nlet bad2 = Error(\"really invalid\")\n\nlet mod10equal = (a, b) => mod(a, 10) === mod(b, 10)\n\nResult.equal(good1, good2, mod10equal) == true\n\nResult.equal(good1, bad1, mod10equal) == false\n\nResult.equal(bad2, good2, mod10equal) == false\n\nResult.equal(bad1, bad2, mod10equal) == true\n```" ], - "signature": "let equal: (t<'a, 'c>, t<'b, 'd>, ('a, 'b) => bool) => bool" + "signature": "let equal: (result<'a, 'c>, result<'b, 'd>, ('a, 'b) => bool) => bool" }, { "id": "Core.Result.compare", "kind": "value", "name": "compare", "docstrings": [ - "`compare(res1, res2, f)`: Compare two `Result` variables with respect to a\n comparison function. The comparison function returns -1. if the first variable\n is \"less than\" the second, 0. if the two variables are equal, and 1. if the first\n is \"greater than\" the second.\n\n If `res1` and `res2` are of the form `Ok(n)` and `Ok(m)`, return the result of\n `f(n, m)`. If `res1` is of the form `Error(e)` and `res2` of the form `Ok(n)`,\n return -1. (nothing is less than something) If `res1` is of the form `Ok(n)` and\n `res2` of the form `Error(e)`, return 1. (something is greater than nothing) If\n both `res1` and `res2` are of the form `Error(e)`, return 0. (equal)\n\n ```res example\n let good1 = Result.Ok(59)\n\n let good2 = Result.Ok(37)\n\n let bad1 = Result.Error(\"invalid\")\n\n let bad2 = Result.Error(\"really invalid\")\n\n let mod10cmp = (a, b) => Pervasives.compare(mod(a, 10), mod(b, 10))\n\n Result.compare(Ok(39), Ok(57), mod10cmp) == 1.\n\n Result.compare(Ok(57), Ok(39), mod10cmp) == (-1.)\n\n Result.compare(Ok(39), Error(\"y\"), mod10cmp) == 1.\n\n Result.compare(Error(\"x\"), Ok(57), mod10cmp) == (-1.)\n\n Result.compare(Error(\"x\"), Error(\"y\"), mod10cmp) == 0.\n ```" + "`compare(res1, res2, f)`: Compare two `Result` variables with respect to a\ncomparison function. The comparison function returns -1. if the first variable\nis \"less than\" the second, 0. if the two variables are equal, and 1. if the first\nis \"greater than\" the second.\n\nIf `res1` and `res2` are of the form `Ok(n)` and `Ok(m)`, return the result of\n`f(n, m)`. If `res1` is of the form `Error(e)` and `res2` of the form `Ok(n)`,\nreturn -1. (nothing is less than something) If `res1` is of the form `Ok(n)` and\n`res2` of the form `Error(e)`, return 1. (something is greater than nothing) If\nboth `res1` and `res2` are of the form `Error(e)`, return 0. (equal)\n\n## Examples\n\n```rescript\nlet good1 = Ok(59)\n\nlet good2 = Ok(37)\n\nlet bad1 = Error(\"invalid\")\n\nlet bad2 = Error(\"really invalid\")\n\nlet mod10cmp = (a, b) => Int.compare(mod(a, 10), mod(b, 10))\n\nResult.compare(Ok(39), Ok(57), mod10cmp) == 1.\n\nResult.compare(Ok(57), Ok(39), mod10cmp) == (-1.)\n\nResult.compare(Ok(39), Error(\"y\"), mod10cmp) == 1.\n\nResult.compare(Error(\"x\"), Ok(57), mod10cmp) == (-1.)\n\nResult.compare(Error(\"x\"), Error(\"y\"), mod10cmp) == 0.\n```" ], - "signature": "let compare: (\\n t<'a, 'c>,\\n t<'b, 'd>,\\n ('a, 'b) => Core__Ordering.t,\\n) => Core__Ordering.t" + "signature": "let compare: (\n result<'a, 'c>,\n result<'b, 'd>,\n ('a, 'b) => Core__Ordering.t,\n) => Core__Ordering.t" }, { "id": "Core.Result.forEach", @@ -1835,14 +2695,14 @@ "docstrings": [ "`forEach(res, f)` runs the provided function `f` on the `Ok` value. If `res` is `Error`, nothing happens.\n\n## Examples\n\n```rescript\nResult.forEach(Ok(3), Console.log) // Logs \"3\", returns ()\nResult.forEach(Error(\"x\"), Console.log) // Does nothing, returns ()\n```" ], - "signature": "let forEach: (t<'a, 'b>, 'a => unit) => unit" + "signature": "let forEach: (result<'a, 'b>, 'a => unit) => unit" }, { "id": "Core.Result.mapError", "kind": "value", "name": "mapError", "docstrings": [ - "`mapError(r, f)` generates a new `result` by applying the function `f` to the `Error` value. If the source is `Ok`, return it as-is.\n\n## Examples\n\n```rescript\nlet format = n => `Error code: ${n->Int.toString}`\nmapError(Error(14), format) // Error(\"Error code: 14\")\nmapError(Ok(\"abc\"), format) // Ok(\"abc\")\n```" + "`mapError(r, f)` generates a new `result` by applying the function `f` to the `Error` value. If the source is `Ok`, return it as-is.\n\n## Examples\n\n```rescript\nlet format = n => `Error code: ${n->Int.toString}`\nResult.mapError(Error(14), format) // Error(\"Error code: 14\")\nResult.mapError(Ok(\"abc\"), format) // Ok(\"abc\")\n```" ], "signature": "let mapError: (result<'a, 'b>, 'b => 'c) => result<'a, 'c>" } @@ -1948,18 +2808,18 @@ "kind": "value", "name": "make", "docstrings": [ - "`make(length, value)` returns a list of length `length` with each element filled\nwith `value`. Returns an empty list if `value` is negative.\n\n## Examples\n\n```rescript\nList.make(3, 1) // list{1, 1, 1}\n```" + "`make(length, value)` returns a list of length `length` with each element filled\nwith `value`. Returns an empty list if `value` is negative.\n\n## Examples\n\n```rescript\nList.make(~length=3, 1) // list{1, 1, 1}\n```" ], - "signature": "let make: (int, 'a) => t<'a>" + "signature": "let make: (~length: int, 'a) => t<'a>" }, { - "id": "Core.List.makeBy", + "id": "Core.List.fromInitializer", "kind": "value", - "name": "makeBy", + "name": "fromInitializer", "docstrings": [ - "`makeBy(length, f)` return a list of length `length` with element initialized\nwith `f`. Returns an empty list if `length` is negative.\n\n## Examples\n\n```rescript\nList.makeBy(5, i => i) // list{0, 1, 2, 3, 4}\n\nList.makeBy(5, i => i * i) // list{0, 1, 4, 9, 16}\n```" + "`makeBy(length, f)` return a list of length `length` with element initialized\nwith `f`. Returns an empty list if `length` is negative.\n\n## Examples\n\n```rescript\nList.fromInitializer(~length=5, i => i) // list{0, 1, 2, 3, 4}\n\nList.fromInitializer(~length=5, i => i * i) // list{0, 1, 4, 9, 16}\n```" ], - "signature": "let makeBy: (int, int => 'a) => t<'a>" + "signature": "let fromInitializer: (~length: int, int => 'a) => t<'a>" }, { "id": "Core.List.toShuffled", @@ -2025,13 +2885,13 @@ "signature": "let reverseConcat: (t<'a>, t<'a>) => t<'a>" }, { - "id": "Core.List.flatten", + "id": "Core.List.flat", "kind": "value", - "name": "flatten", + "name": "flat", "docstrings": [ - "`flatten(list)` return the list obtained by concatenating all the lists in\n`list`, in order.\n\n## Examples\n\n```rescript\nList.flatten(list{list{1, 2, 3}, list{}, list{3}}) // list{1, 2, 3, 3}\n```" + "`flat(list)` return the list obtained by concatenating all the lists in\n`list`, in order.\n\n## Examples\n\n```rescript\nList.flat(list{list{1, 2, 3}, list{}, list{3}}) // list{1, 2, 3, 3}\n```" ], - "signature": "let flatten: t> => t<'a>" + "signature": "let flat: t> => t<'a>" }, { "id": "Core.List.map", @@ -2065,9 +2925,9 @@ "kind": "value", "name": "mapWithIndex", "docstrings": [ - "`mapWithIndex(list, f)` applies `f` to each element of `list`. Function `f`\ntakes two arguments: the index starting from 0 and the element from `list`, in\nthat order.\n\n## Examples\n\n```rescript\nlist{1, 2, 3}->List.mapWithIndex((index, x) => index + x) // list{1, 3, 5}\n```" + "`mapWithIndex(list, f)` applies `f` to each element of `list`. Function `f`\ntakes two arguments: the index starting from 0 and the element from `list`, in\nthat order.\n\n## Examples\n\n```rescript\nlist{1, 2, 3}->List.mapWithIndex((x, index) => index + x) // list{1, 3, 5}\n```" ], - "signature": "let mapWithIndex: (t<'a>, (int, 'a) => 'b) => t<'b>" + "signature": "let mapWithIndex: (t<'a>, ('a, int) => 'b) => t<'b>" }, { "id": "Core.List.fromArray", @@ -2112,16 +2972,16 @@ "docstrings": [ "`forEach(list, f)` call `f` on each element of `list` from the beginning to end.\n`f` returns `unit`, so no new array is created. Use `forEach` when you are primarily\nconcerned with repetitively creating side effects.\n\n## Examples\n\n```rescript\nList.forEach(list{\"a\", \"b\", \"c\"}, x => Console.log(\"Item: \" ++ x))\n/*\n prints:\n Item: a\n Item: b\n Item: c\n*/\n```" ], - "signature": "let forEach: (t<'a>, 'a => 'b) => unit" + "signature": "let forEach: (t<'a>, 'a => unit) => unit" }, { "id": "Core.List.forEachWithIndex", "kind": "value", "name": "forEachWithIndex", "docstrings": [ - "`forEachWithIndex(list, f, index)` call `f` on each element of `list` from beginning\nto end. Function `f` takes two arguments: the `index` starting from 0 and the\nelement from `list`. `f` returns `unit`.\n\n## Examples\n\n```rescript\nList.forEachWithIndex(list{\"a\", \"b\", \"c\"}, (index, x) => {\n Console.log(\"Item \" ++ Int.toString(index) ++ \" is \" ++ x)\n})\n/*\n prints:\n Item 0 is a\n Item 1 is b\n Item 2 is cc\n*/\n```" + "`forEachWithIndex(list, f, index)` call `f` on each element of `list` from beginning\nto end. Function `f` takes two arguments: the `index` starting from 0 and the\nelement from `list`. `f` returns `unit`.\n\n## Examples\n\n```rescript\nList.forEachWithIndex(list{\"a\", \"b\", \"c\"}, (x, index) => {\n Console.log(\"Item \" ++ Int.toString(index) ++ \" is \" ++ x)\n})\n/*\n prints:\n Item 0 is a\n Item 1 is b\n Item 2 is cc\n*/\n```" ], - "signature": "let forEachWithIndex: (t<'a>, (int, 'a) => 'b) => unit" + "signature": "let forEachWithIndex: (t<'a>, ('a, int) => unit) => unit" }, { "id": "Core.List.reduce", @@ -2236,9 +3096,9 @@ "kind": "value", "name": "compare", "docstrings": [ - "`compare(list1, list2, f)` compare elements one by one `f`. `f` returns a negative\nnumber if `list1` is \"less than\" `list2`, zero if `list1` is \"equal to\" `list2`,\na positive number if `list1` is \"greater than\" `list2`.\n\nThe comparison returns the first non-zero result of `f`, or zero if `f` returns\nzero for all `list1` and `list2`.\n\n- If all items have compared equal, but `list1` is exhausted first, return `-1.`. (`list1` is shorter).\n- If all items have compared equal, but `list2` is exhausted first, return `1.` (`list1` is longer).\n\n## Examples\n\n```rescript\nList.compare(list{3}, list{3, 7}, (a, b) => compare(a, b)) /* (-1.) */\n\nList.compare(list{5, 3}, list{5}, (a, b) => compare(a, b)) /* 1. */\n\nList.compare(list{1, 3, 5}, list{1, 4, 2}, (a, b) => compare(a, b)) /* (-1.) */\n\nList.compare(list{1, 3, 5}, list{1, 2, 3}, (a, b) => compare(a, b)) /* 1. */\n\nList.compare(list{1, 3, 5}, list{1, 3, 5}, (a, b) => compare(a, b)) /* 0. */\n```\n\n**Please note:** The total ordering of List is different from Array,\nfor Array, we compare the length first and, only if the lengths are equal, elements one by one.\nFor lists, we just compare elements one by one." + "`compare(list1, list2, f)` compare elements one by one `f`. `f` returns a negative\nnumber if `list1` is \"less than\" `list2`, zero if `list1` is \"equal to\" `list2`,\na positive number if `list1` is \"greater than\" `list2`.\n\nThe comparison returns the first non-zero result of `f`, or zero if `f` returns\nzero for all `list1` and `list2`.\n\n- If all items have compared equal, but `list1` is exhausted first, return `-1.`. (`list1` is shorter).\n- If all items have compared equal, but `list2` is exhausted first, return `1.` (`list1` is longer).\n\n## Examples\n\n```rescript\nList.compare(list{3}, list{3, 7}, (a, b) => Int.compare(a, b)) // -1.\nList.compare(list{5, 3}, list{5}, (a, b) => Int.compare(a, b)) // 1.\nList.compare(list{1, 3, 5}, list{1, 4, 2}, (a, b) => Int.compare(a, b)) // -1.\nList.compare(list{1, 3, 5}, list{1, 2, 3}, (a, b) => Int.compare(a, b)) // 1.\nList.compare(list{1, 3, 5}, list{1, 3, 5}, (a, b) => Int.compare(a, b)) // 0.\n```\n\n**Please note:** The total ordering of List is different from Array,\nfor Array, we compare the length first and, only if the lengths are equal, elements one by one.\nFor lists, we just compare elements one by one." ], - "signature": "let compare: (\\n t<'a>,\\n t<'a>,\\n ('a, 'a) => Core__Ordering.t,\\n) => Core__Ordering.t" + "signature": "let compare: (\n t<'a>,\n t<'a>,\n ('a, 'a) => Core__Ordering.t,\n) => Core__Ordering.t" }, { "id": "Core.List.equal", @@ -2259,13 +3119,13 @@ "signature": "let has: (t<'a>, 'b, ('a, 'b) => bool) => bool" }, { - "id": "Core.List.getBy", + "id": "Core.List.find", "kind": "value", - "name": "getBy", + "name": "find", "docstrings": [ - "`getBy(list, f)` returns `Some(value)` for the first value in `list` that\nsatisfies the predicate function `f`. Returns `None` if no element satisfies\nthe function.\n\n## Examples\n\n```rescript\nList.getBy(list{1, 4, 3, 2}, x => x > 3) // Some(4)\n\nList.getBy(list{1, 4, 3, 2}, x => x > 4) // None\n```" + "`find(list, f)` returns `Some(value)` for the first value in `list` that\nsatisfies the predicate function `f`. Returns `None` if no element satisfies\nthe function.\n\n## Examples\n\n```rescript\nList.find(list{1, 4, 3, 2}, x => x > 3) // Some(4)\n\nList.find(list{1, 4, 3, 2}, x => x > 4) // None\n```" ], - "signature": "let getBy: (t<'a>, 'a => bool) => option<'a>" + "signature": "let find: (t<'a>, 'a => bool) => option<'a>" }, { "id": "Core.List.filter", @@ -2362,7 +3222,9 @@ "core/option": { "id": "Core.Option", "name": "Option", - "docstrings": [], + "docstrings": [ + "We represent the existence and nonexistence of a value by wrapping it with\nthe `option` type. In order to make it a bit more convenient to work with\noption-types, we provide utility-functions for it.\n\nThe `option` type is a part of the ReScript standard library which is defined\nlike this:\n\n```rescript\ntype option<'a> = None | Some('a)\n```\n\n```rescript\nlet someString: option = Some(\"hello\")\n```" + ], "items": [ { "id": "Core.Option.filter", @@ -2457,7 +3319,7 @@ "kind": "value", "name": "orElse", "docstrings": [ - "`orElse(opt1, opt2)` returns `opt2` if `opt1` is `None`, otherwise `opt1`.\n\n## Examples\n\n```rescript\nOption.orElse(Some(1812), Some(1066)) == Some(1812)\nOption.orElse(None, Some(1066) == Some(1066)\nOption.orElse(None, None) == None\n```" + "`orElse(opt1, opt2)` returns `opt2` if `opt1` is `None`, otherwise `opt1`.\n\n## Examples\n\n```rescript\nOption.orElse(Some(1812), Some(1066)) == Some(1812)\nOption.orElse(None, Some(1066)) == Some(1066)\nOption.orElse(None, None) == None\n```" ], "signature": "let orElse: (option<'a>, option<'a>) => option<'a>" }, @@ -2493,9 +3355,9 @@ "kind": "value", "name": "compare", "docstrings": [ - "`compare(opt1, opt2, f)` compares two optional values with respect to given `f`.\n\nIf both `opt1` and `opt2` are `None`, it returns `0.`. If the first argument is `Some(value1)` and the second is `None`, returns `1.` (something is greater than nothing).\n\nIf the first argument is `None` and the second is `Some(value2)`, returns `-1.`\n(nothing is less than something).\n\nIf the arguments are `Some(value1)` and `Some(value2)`, returns the result of\n`f(value1, value2)`, `f` takes two arguments and returns `-1.` if the first\nargument is less than the second, `0.` if the arguments are equal, and `1.` if\nthe first argument is greater than the second.\n\n## Examples\n\n```rescript\nlet clockCompare = (a, b) => compare(mod(a, 12), mod(b, 12))\n\nopen Option\n\ncompare(Some(3), Some(15), clockCompare) // 0.\ncompare(Some(3), Some(14), clockCompare) // 1.\ncompare(Some(2), Some(15), clockCompare) // (-1.)\ncompare(None, Some(15), clockCompare) // (-1.)\ncompare(Some(14), None, clockCompare) // 1.\ncompare(None, None, clockCompare) // 0.\n```" + "`compare(opt1, opt2, f)` compares two optional values with respect to given `f`.\n\nIf both `opt1` and `opt2` are `None`, it returns `0.`. If the first argument is `Some(value1)` and the second is `None`, returns `1.` (something is greater than nothing).\n\nIf the first argument is `None` and the second is `Some(value2)`, returns `-1.`\n(nothing is less than something).\n\nIf the arguments are `Some(value1)` and `Some(value2)`, returns the result of\n`f(value1, value2)`, `f` takes two arguments and returns `-1.` if the first\nargument is less than the second, `0.` if the arguments are equal, and `1.` if\nthe first argument is greater than the second.\n\n## Examples\n\n```rescript\nlet clockCompare = (a, b) => Int.compare(mod(a, 12), mod(b, 12))\n\nOption.compare(Some(3), Some(15), clockCompare) // 0.\nOption.compare(Some(3), Some(14), clockCompare) // 1.\nOption.compare(Some(2), Some(15), clockCompare) // (-1.)\nOption.compare(None, Some(15), clockCompare) // (-1.)\nOption.compare(Some(14), None, clockCompare) // 1.\nOption.compare(None, None, clockCompare) // 0.\n```" ], - "signature": "let compare: (\\n option<'a>,\\n option<'b>,\\n ('a, 'b) => Core__Ordering.t,\\n) => Core__Ordering.t" + "signature": "let compare: (\n option<'a>,\n option<'b>,\n ('a, 'b) => Core__Ordering.t,\n) => Core__Ordering.t" } ] }, @@ -2508,7 +3370,9 @@ "core/re": { "id": "Core.Re", "name": "Re", - "docstrings": [], + "docstrings": [ + "Functions for handling RegExp's in ReScript.\n\nSee [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) on MDN." + ], "items": [ { "id": "Core.Re.t", @@ -2636,7 +3500,35 @@ "id": "Core.Intl", "name": "Intl", "docstrings": [], - "items": [] + "items": [ + { + "id": "Core.Intl.getCanonicalLocalesExn", + "kind": "value", + "name": "getCanonicalLocalesExn", + "docstrings": [ + "@throws RangeError" + ], + "signature": "let getCanonicalLocalesExn: string => array" + }, + { + "id": "Core.Intl.getCanonicalLocalesManyExn", + "kind": "value", + "name": "getCanonicalLocalesManyExn", + "docstrings": [ + "@throws RangeError" + ], + "signature": "let getCanonicalLocalesManyExn: array => array" + }, + { + "id": "Core.Intl.supportedValuesOfExn", + "kind": "value", + "name": "supportedValuesOfExn", + "docstrings": [ + "@throws RangeError" + ], + "signature": "let supportedValuesOfExn: string => array" + } + ] }, "core/biguint64array": { "id": "Core.BigUint64Array", @@ -3958,7 +4850,9 @@ "core/set": { "id": "Core.Set", "name": "Set", - "docstrings": [], + "docstrings": [ + "Bindings to the mutable JavaScript `Set`.\n\nSee [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) on MDN." + ], "items": [ { "id": "Core.Set.t", @@ -4010,7 +4904,7 @@ "kind": "value", "name": "clear", "docstrings": [ - "Clears all entries in the set.\n\n## Examples\n```rescript\nlet set = Set.make()\n\nset->Set.add(\"someKey\")\nlet size = set->Set.size // 1\n\nset->Set.clear\nlet size = set->Set.size // 0\n```" + "Clears all entries in the set.\n\n## Examples\n```rescript\nlet set = Set.make()\n\nset->Set.add(\"someKey\")\nset->Set.size // 1\n\nset->Set.clear\nset->Set.size // 0\n```" ], "signature": "let clear: t<'a> => unit" }, @@ -4113,7 +5007,9 @@ "core/map": { "id": "Core.Map", "name": "Map", - "docstrings": [], + "docstrings": [ + "Bindings to the mutable JavaScript `Map`.\n\nSee [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) on MDN." + ], "items": [ { "id": "Core.Map.t", @@ -4165,7 +5061,7 @@ "kind": "value", "name": "clear", "docstrings": [ - "Clears all entries in the map.\n\n## Examples\n```rescript\nlet map = Map.make()\n\nmap->Map.set(\"someKey\", \"someValue\")\nlet size = map->Map.size // 1\n\nmap->Map.clear\nlet size = map->Map.size // 0\n```" + "Clears all entries in the map.\n\n## Examples\n```rescript\nlet map = Map.make()\n\nmap->Map.set(\"someKey\", \"someValue\")\nmap->Map.size // 1\n\nmap->Map.clear\nmap->Map.size // 0\n```" ], "signature": "let clear: t<'k, 'v> => unit" }, @@ -4255,7 +5151,9 @@ "core/asynciterator": { "id": "Core.AsyncIterator", "name": "AsyncIterator", - "docstrings": [], + "docstrings": [ + "Bindings to async iterators, a way to do async iteration in JavaScript.\n\nSee [async iterator protocols](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols) on MDN." + ], "items": [ { "id": "Core.AsyncIterator.t", @@ -4278,16 +5176,27 @@ "kind": "value", "name": "next", "docstrings": [ - "`next(asyncIterator)`\n\nReturns the next value of the iterator, if any.\n\nSee [async iterator protocols](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols) on MDN.\n\n## Examples\n- A simple example, getting the next value:\n```rescript\nlet {done, value} = await someAsyncIterator->AsyncIterator.next\n```\n\n- Complete example, including looping over all values:\n```rescript\n// Let's pretend we get an async iterator returning ints from somewhere.\n@val external asyncIterator: AsyncIterator.t = \"someAsyncIterator\"\n\n\nlet processMyAsyncIterator = async () => {\n // ReScript doesn't have `for ... of` loops, but it's easy to mimic using a while loop.\n let break = ref(false)\n\n while !break.contents {\n // Await the next iterator value\n let {value, done} = await asyncIterator->AsyncIterator.next\n\n // Exit the while loop if the iterator says it's done\n break := done\n\n // This will log the (int) value of the current async iteration, if a value was returned.\n Console.log(value)\n }\n}\n```" + "`next(asyncIterator)`\n\nReturns the next value of the iterator, if any.\n\nSee [async iterator protocols](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols) on MDN.\n\n## Examples\n- A simple example, getting the next value:\n```rescript\n@val external asyncIterator: AsyncIterator.t = \"someAsyncIterator\"\nlet {AsyncIterator.done, value} = await asyncIterator->AsyncIterator.next\n```\n\n- Complete example, including looping over all values:\n```rescript\n// Let's pretend we get an async iterator returning ints from somewhere.\n@val external asyncIterator: AsyncIterator.t = \"someAsyncIterator\"\n\n\nlet processMyAsyncIterator = async () => {\n // ReScript doesn't have `for ... of` loops, but it's easy to mimic using a while loop.\n let break = ref(false)\n\n while !break.contents {\n // Await the next iterator value\n let {value, done} = await asyncIterator->AsyncIterator.next\n\n // Exit the while loop if the iterator says it's done\n break := done\n\n // This will log the (int) value of the current async iteration, if a value was returned.\n Console.log(value)\n }\n}\n```" ], "signature": "let next: t<'a> => promise>" + }, + { + "id": "Core.AsyncIterator.forEach", + "kind": "value", + "name": "forEach", + "docstrings": [ + "`forEach(iterator, fn)` consumes all values in the async iterator and runs the callback `fn` for each value.\n\nSee [iterator protocols](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) on MDN.\n\n## Examples\n```rescript\n// Let's pretend we get an async iterator returning ints from somewhere.\n@val external asyncIterator: AsyncIterator.t = \"someAsyncIterator\"\n\nawait asyncIterator->AsyncIterator.forEach(value =>\n switch value {\n | Some(value) if value > 10 => Console.log(\"More than 10!\")\n | _ => ()\n }\n)\n```" + ], + "signature": "let forEach: (t<'a>, option<'a> => unit) => promise" } ] }, "core/iterator": { "id": "Core.Iterator", "name": "Iterator", - "docstrings": [], + "docstrings": [ + "Bindings to JavaScript iterators.\n\nSee [`iterator protocols`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) on MDN." + ], "items": [ { "id": "Core.Iterator.t", @@ -4312,7 +5221,7 @@ "kind": "value", "name": "next", "docstrings": [ - "Returns the next value of the iterator, if any.\n\nSee [iterator protocols](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) on MDN.\n\n## Examples\n```rescript\n// Pulls out the next value of the iterator\nlet {done, value} = someIterator->Iterator.next\n```" + "Returns the next value of the iterator, if any.\n\nSee [iterator protocols](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) on MDN.\n\n## Examples\n```rescript\n@val external someIterator: Iterator.t = \"someIterator\"\n\n// Pulls out the next value of the iterator\nlet {Iterator.done, value} = someIterator->Iterator.next\n```" ], "signature": "let next: t<'a> => value<'a>" }, @@ -4333,13 +5242,24 @@ "`toArray(iterator)` turns `iterator` into an array of its remaining values, applying the provided mapper function on each item.\nRemember that each invocation of `next` of an iterator consumes a value. `Iterator.toArrayWithMapper` will consume all remaining values of the iterator and return them in an array to you.\n\nSee [iterator protocols](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) on MDN.\n\n## Examples\n```rescript\nlet map = Map.make()\nmap->Map.set(\"someKey\", \"someValue\")\nmap->Map.set(\"someKey2\", \"someValue2\")\n\n// `Map.keys` returns all keys of the map as an iterator.\nlet mapKeysAsArray = map\n ->Map.keys\n ->Iterator.toArrayWithMapper(key => key->String.length)\n\nConsole.log(mapKeysAsArray) // Logs [7, 8] to the console.\n```" ], "signature": "let toArrayWithMapper: (t<'a>, 'a => 'b) => array<'b>" + }, + { + "id": "Core.Iterator.forEach", + "kind": "value", + "name": "forEach", + "docstrings": [ + "`forEach(iterator, fn)` consumes all values in the iterator and runs the callback `fn` for each value.\n\nSee [iterator protocols](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) on MDN.\n\n## Examples\n```rescript\n@val external someIterator: Iterator.t = \"someIterator\"\n\nsomeIterator->Iterator.forEach(value =>\n switch value {\n | Some(value) if value > 10 => Console.log(\"More than 10!\")\n | _ => ()\n }\n)\n```" + ], + "signature": "let forEach: (t<'a>, option<'a> => unit) => unit" } ] }, "core/json": { "id": "Core.JSON", "name": "JSON", - "docstrings": [], + "docstrings": [ + "Functions for interacting with JSON." + ], "items": [ { "id": "Core.JSON.t", @@ -4348,14 +5268,14 @@ "docstrings": [ "A type representing a JSON object." ], - "signature": "type t = Js.Json.t" + "signature": "type t = Js.Json.t =\n | Boolean(bool)\n | Null\n | String(string)\n | Number(float)\n | Object(Core__Dict.t)\n | Array(array)" }, { "id": "Core.JSON.parseExn", "kind": "value", "name": "parseExn", "docstrings": [ - "`parseExn(string)` \n\nParses a JSON string or throws a JavaScript exception (SyntaxError), if the string isn't valid.\nIt returns a JSON type.\n\n## Examples\n```rescript\ntry {\n let _ = JSON.parseExn(`{\"foo\":\"bar\",\"hello\":\"world\"}`)\n // { foo: 'bar', hello: 'world' }\n\n let _ = JSON.parseExn(\"\")\n // error\n} catch {\n| Exn.Error(obj) => Console.log(\"error\")\n}\n```\n\n## Exceptions \n\n- Raises a SyntaxError (Exn.t) if the string isn't valid JSON." + "`parseExn(string)` \n\nParses a JSON string or throws a JavaScript exception (SyntaxError), if the string isn't valid.\nIt returns a JSON type.\n\n## Examples\n```rescript\ntry {\n let _ = JSON.parseExn(`{\"foo\":\"bar\",\"hello\":\"world\"}`)\n // { foo: 'bar', hello: 'world' }\n\n let _ = JSON.parseExn(\"\")\n // error\n} catch {\n| Exn.Error(_) => Console.log(\"error\")\n}\n```\n\n## Exceptions \n\n- Raises a SyntaxError (Exn.t) if the string isn't valid JSON." ], "signature": "let parseExn: string => t" }, @@ -4364,7 +5284,7 @@ "kind": "value", "name": "parseExnWithReviver", "docstrings": [ - "`parseExnWithReviver(string, reviver)` \n\nParses a JSON string or throws a JavaScript exception (SyntaxError), if the string isn't valid.\nThe reviver describes how the value should be transformed. It is a function which receives a key and a value.\nIt returns a JSON type.\n\n## Examples\n```rescript\nlet reviver = (key, value) => {\n let valueType = JSON.Classify.classify(value)\n\n switch valueType {\n | String(string) => string->String.toUpperCase->JSON.Encode.string\n | Number(number) => (number *. 2.0)->JSON.Encode.float\n | _ => value\n }\n}\n\nlet jsonString = `{\"hello\":\"world\",\"someNumber\":21}`\n\ntry {\n JSON.parseExnWithReviver(jsonString, reviver)->Console.log\n // { hello: 'WORLD', someNumber: 42 }\n\n JSON.parseExnWithReviver(\"\", reviver)->Console.log\n // error\n} catch {\n| Exn.Error(_) => Console.log(\"error\")\n}\n```\n\n## Exceptions \n\n- Raises a SyntaxError if the string isn't valid JSON." + "`parseExnWithReviver(string, reviver)` \n\nParses a JSON string or throws a JavaScript exception (SyntaxError), if the string isn't valid.\nThe reviver describes how the value should be transformed. It is a function which receives a key and a value.\nIt returns a JSON type.\n\n## Examples\n```rescript\nlet reviver = (_, value) => {\n let valueType = JSON.Classify.classify(value)\n\n switch valueType {\n | String(string) => string->String.toUpperCase->JSON.Encode.string\n | Number(number) => (number *. 2.0)->JSON.Encode.float\n | _ => value\n }\n}\n\nlet jsonString = `{\"hello\":\"world\",\"someNumber\":21}`\n\ntry {\n JSON.parseExnWithReviver(jsonString, reviver)->Console.log\n // { hello: 'WORLD', someNumber: 42 }\n\n JSON.parseExnWithReviver(\"\", reviver)->Console.log\n // error\n} catch {\n| Exn.Error(_) => Console.log(\"error\")\n}\n```\n\n## Exceptions \n\n- Raises a SyntaxError if the string isn't valid JSON." ], "signature": "let parseExnWithReviver: (string, (string, t) => t) => t" }, @@ -4391,7 +5311,7 @@ "kind": "value", "name": "stringifyWithReplacer", "docstrings": [ - "`stringifyWithReplacer(json, replacer)` \n\nConverts a JSON object to a JSON string.\nThe replacer describes how the value should be transformed. It is a function which receives a key and a value.\nIf you want to stringify any type, use `JSON.stringifyAnyWithReplacer` instead.\n\n## Examples\n```rescript\nlet json =\n Dict.fromArray([\n (\"foo\", JSON.Encode.string(\"bar\")),\n (\"hello\", JSON.Encode.string(\"world\")),\n (\"someNumber\", JSON.Encode.int(42)),\n ])->JSON.Encode.object\n\nlet replacer = (key, value) => {\n let decodedValue = value->JSON.Decode.string\n\n switch decodedValue {\n | Some(string) => string->String.toUpperCase->JSON.Encode.string\n | None => value\n }\n}\n\nJSON.stringifyWithReplacer(json, replacer)\n// {\"foo\":\"BAR\",\"hello\":\"WORLD\",\"someNumber\":42}\n```" + "`stringifyWithReplacer(json, replacer)` \n\nConverts a JSON object to a JSON string.\nThe replacer describes how the value should be transformed. It is a function which receives a key and a value.\nIf you want to stringify any type, use `JSON.stringifyAnyWithReplacer` instead.\n\n## Examples\n```rescript\nlet json =\n Dict.fromArray([\n (\"foo\", JSON.Encode.string(\"bar\")),\n (\"hello\", JSON.Encode.string(\"world\")),\n (\"someNumber\", JSON.Encode.int(42)),\n ])->JSON.Encode.object\n\nlet replacer = (_, value) => {\n let decodedValue = value->JSON.Decode.string\n\n switch decodedValue {\n | Some(string) => string->String.toUpperCase->JSON.Encode.string\n | None => value\n }\n}\n\nJSON.stringifyWithReplacer(json, replacer)\n// {\"foo\":\"BAR\",\"hello\":\"WORLD\",\"someNumber\":42}\n```" ], "signature": "let stringifyWithReplacer: (t, (string, t) => t) => string" }, @@ -4400,7 +5320,7 @@ "kind": "value", "name": "stringifyWithReplacerAndIndent", "docstrings": [ - "`stringifyWithReplacerAndIndent(json, replacer, indentation)` \n\nConverts a JSON object to a JSON string. The output will be indented.\nThe replacer describes how the value should be transformed. It is a function which receives a key and a value.\nIf you want to stringify any type, use `JSON.stringifyAnyWithReplacerAndIndent` instead.\n\n## Examples\n```rescript\nlet json =\n Dict.fromArray([\n (\"foo\", JSON.Encode.string(\"bar\")),\n (\"hello\", JSON.Encode.string(\"world\")),\n (\"someNumber\", JSON.Encode.int(42)),\n ])->JSON.Encode.object\n\nlet replacer = (key, value) => {\n let decodedValue = value->JSON.Decode.string\n\n switch decodedValue {\n | Some(string) => string->String.toUpperCase->JSON.Encode.string\n | None => value\n }\n}\n\nJSON.stringifyWithReplacerAndIndent(json, replacer, 2)\n// {\n \"foo\": \"BAR\",\n \"hello\": \"WORLD\",\n \"someNumber\": 42\n}\n```" + "`stringifyWithReplacerAndIndent(json, replacer, indentation)`\n\nConverts a JSON object to a JSON string. The output will be indented.\nThe replacer describes how the value should be transformed. It is a function which receives a key and a value.\nIf you want to stringify any type, use `JSON.stringifyAnyWithReplacerAndIndent` instead.\n\n## Examples\n```rescript\nlet json =\n Dict.fromArray([\n (\"foo\", JSON.Encode.string(\"bar\")),\n (\"hello\", JSON.Encode.string(\"world\")),\n (\"someNumber\", JSON.Encode.int(42)),\n ])->JSON.Encode.object\n\nlet replacer = (_, value) => {\n let decodedValue = value->JSON.Decode.string\n\n switch decodedValue {\n | Some(string) => string->String.toUpperCase->JSON.Encode.string\n | None => value\n }\n}\n\nJSON.stringifyWithReplacerAndIndent(json, replacer, 2)\n// {\n// \"foo\": \"BAR\",\n// \"hello\": \"WORLD\",\n// \"someNumber\": 42\n// }\n```" ], "signature": "let stringifyWithReplacerAndIndent: (t, (string, t) => t, int) => string" }, @@ -4445,7 +5365,7 @@ "kind": "value", "name": "stringifyAnyWithReplacer", "docstrings": [ - "`stringifyAnyWithReplacer(json, replacer)` \n\nConverts any type to a JSON string.\nThe replacer describes how the value should be transformed. It is a function which receives a key and a value.\nStringifying a function or `undefined` will return `None`.\nIf the value contains circular references or `BigInt`s, the function will throw a JavaScript exception (TypeError).\nIf you want to stringify a JSON object, use `JSON.stringifyWithReplacer` instead.\n\n## Examples\n```rescript\nlet dict = Dict.fromArray([\n (\"foo\", JSON.Encode.string(\"bar\")),\n (\"hello\", JSON.Encode.string(\"world\")),\n (\"someNumber\", JSON.Encode.int(42)),\n])\n\nlet replacer = (key, value) => {\n let decodedValue = value->JSON.Decode.string\n\n switch decodedValue {\n | Some(string) => string->String.toUpperCase->JSON.Encode.string\n | None => value\n }\n}\n\nJSON.stringifyAnyWithReplacer(dict, replacer)\n// {\"foo\":\"BAR\",\"hello\":\"WORLD\",\"someNumber\":42}\n\nJSON.stringifyAny(() => \"hello world\")\n// None\n\nBigInt.fromInt(0)->JSON.stringifyAny\n// exception\n```\n\n## Exceptions \n\n- Raises a TypeError if the value contains circular references.\n- Raises a TypeError if the value contains `BigInt`s." + "`stringifyAnyWithReplacer(json, replacer)`\n\nConverts any type to a JSON string.\nThe replacer describes how the value should be transformed. It is a function which receives a key and a value.\nStringifying a function or `undefined` will return `None`.\nIf the value contains circular references or `BigInt`s, the function will throw a JavaScript exception (TypeError).\nIf you want to stringify a JSON object, use `JSON.stringifyWithReplacer` instead.\n\n## Examples\n```rescript\nlet dict = Dict.fromArray([\n (\"foo\", JSON.Encode.string(\"bar\")),\n (\"hello\", JSON.Encode.string(\"world\")),\n (\"someNumber\", JSON.Encode.int(42)),\n])\n\nlet replacer = (_, value) => {\n let decodedValue = value->JSON.Decode.string\n\n switch decodedValue {\n | Some(string) => string->String.toUpperCase->JSON.Encode.string\n | None => value\n }\n}\n\nJSON.stringifyAnyWithReplacer(dict, replacer)\n// {\"foo\":\"BAR\",\"hello\":\"WORLD\",\"someNumber\":42}\n\nJSON.stringifyAny(() => \"hello world\")\n// None\n\nBigInt.fromInt(0)->JSON.stringifyAny\n// exception\n```\n\n## Exceptions \n\n- Raises a TypeError if the value contains circular references.\n- Raises a TypeError if the value contains `BigInt`s." ], "signature": "let stringifyAnyWithReplacer: ('a, (string, t) => t) => option" }, @@ -4454,7 +5374,7 @@ "kind": "value", "name": "stringifyAnyWithReplacerAndIndent", "docstrings": [ - "`stringifyAnyWithReplacerAndIndent(json, replacer, indentation)` \n\nConverts any type to a JSON string. The output will be indented.\nThe replacer describes how the value should be transformed. It is a function which receives a key and a value.\nStringifying a function or `undefined` will return `None`.\nIf the value contains circular references or `BigInt`s, the function will throw a JavaScript exception (TypeError).\nIf you want to stringify a JSON object, use `JSON.stringifyWithReplacerAndIndent` instead.\n\n## Examples\n```rescript\nlet dict = Dict.fromArray([\n (\"foo\", JSON.Encode.string(\"bar\")),\n (\"hello\", JSON.Encode.string(\"world\")),\n (\"someNumber\", JSON.Encode.int(42)),\n])\n\nlet replacer = (key, value) => {\n let decodedValue = value->JSON.Decode.string\n\n switch decodedValue {\n | Some(string) => string->String.toUpperCase->JSON.Encode.string\n | None => value\n }\n}\n\nJSON.stringifyAnyWithReplacerAndIndent(dict, replacer, 2)\n// {\n// \"foo\": \"BAR\",\n// \"hello\": \"WORLD\",\n// \"someNumber\": 42\n// }\n\nJSON.stringifyAny(() => \"hello world\")\n// None\n\nBigInt.fromInt(0)->JSON.stringifyAny\n// exception\n```\n\n## Exceptions \n\n- Raises a TypeError if the value contains circular references.\n- Raises a TypeError if the value contains `BigInt`s." + "`stringifyAnyWithReplacerAndIndent(json, replacer, indentation)` \n\nConverts any type to a JSON string. The output will be indented.\nThe replacer describes how the value should be transformed. It is a function which receives a key and a value.\nStringifying a function or `undefined` will return `None`.\nIf the value contains circular references or `BigInt`s, the function will throw a JavaScript exception (TypeError).\nIf you want to stringify a JSON object, use `JSON.stringifyWithReplacerAndIndent` instead.\n\n## Examples\n```rescript\nlet dict = Dict.fromArray([\n (\"foo\", JSON.Encode.string(\"bar\")),\n (\"hello\", JSON.Encode.string(\"world\")),\n (\"someNumber\", JSON.Encode.int(42)),\n])\n\nlet replacer = (_, value) => {\n let decodedValue = value->JSON.Decode.string\n\n switch decodedValue {\n | Some(string) => string->String.toUpperCase->JSON.Encode.string\n | None => value\n }\n}\n\nJSON.stringifyAnyWithReplacerAndIndent(dict, replacer, 2)\n// {\n// \"foo\": \"BAR\",\n// \"hello\": \"WORLD\",\n// \"someNumber\": 42\n// }\n\nJSON.stringifyAny(() => \"hello world\")\n// None\n\nBigInt.fromInt(0)->JSON.stringifyAny\n// exception\n```\n\n## Exceptions \n\n- Raises a TypeError if the value contains circular references.\n- Raises a TypeError if the value contains `BigInt`s." ], "signature": "let stringifyAnyWithReplacerAndIndent: ('a, (string, t) => t, int) => option" }, @@ -4481,7 +5401,9 @@ "core/type": { "id": "Core.Type", "name": "Type", - "docstrings": [], + "docstrings": [ + "Utilities for classifying the type of JavaScript values at runtime." + ], "items": [ { "id": "Core.Type.t", @@ -4490,7 +5412,7 @@ "docstrings": [ "The possible types of JavaScript values." ], - "signature": "type t = [\\n | #bigint\\n | #boolean\\n | #function\\n | #number\\n | #object\\n | #string\\n | #symbol\\n | #undefined\\n]" + "signature": "type t = [\n | #bigint\n | #boolean\n | #function\n | #number\n | #object\n | #string\n | #symbol\n | #undefined\n]" }, { "id": "Core.Type.typeof", @@ -4632,7 +5554,9 @@ "core/string": { "id": "Core.String", "name": "String", - "docstrings": [], + "docstrings": [ + "Functions for interacting with JavaScript strings.\nSee: [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)." + ], "items": [ { "id": "Core.String.make", @@ -4657,7 +5581,7 @@ "kind": "value", "name": "fromCharCodeMany", "docstrings": [ - "`fromCharCodeMany([n1, n2, n3])` creates a `string` from the characters\ncorresponding to the given numbers, using the same rules as `fromCharCode`.\nSee [`String.fromCharCode`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode) on MDN.\n\n## Examples\n\n```rescript\nString.fromCharCodeMany([189, 43, 190, 61]) == \"½+¾=\"\nString.fromCharCode([65, 66, 67]) == \"ABC\"\n```" + "`fromCharCodeMany([n1, n2, n3])` creates a `string` from the characters\ncorresponding to the given numbers, using the same rules as `fromCharCode`.\nSee [`String.fromCharCode`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode) on MDN.\n\n## Examples\n\n```rescript\nString.fromCharCodeMany([189, 43, 190, 61]) == \"½+¾=\"\nString.fromCharCodeMany([65, 66, 67]) == \"ABC\"\n```" ], "signature": "let fromCharCodeMany: array => string" }, @@ -4806,7 +5730,7 @@ "kind": "value", "name": "indexOfOpt", "docstrings": [ - "`indexOfOpt(str, searchValue)`. Like `indexOf`, but return an `option`.\n\n## Examples\n\n```rescript\nString.indexOf(\"bookseller\", \"ok\") == Some(2)\nString.indexOf(\"bookseller\", \"xyz\") == None\n```" + "`indexOfOpt(str, searchValue)`. Like `indexOf`, but return an `option`.\n\n## Examples\n\n```rescript\nString.indexOfOpt(\"bookseller\", \"ok\") == Some(2)\nString.indexOfOpt(\"bookseller\", \"xyz\") == None\n```" ], "signature": "let indexOfOpt: (string, string) => option" }, @@ -4833,7 +5757,7 @@ "kind": "value", "name": "lastIndexOfOpt", "docstrings": [ - "`lastIndexOfOpt(str, searchValue)`. Like `lastIndexOfOpt`, but return an\n`option`.\n\n## Examples\n\n```rescript\nString.lastIndexOf(\"bookseller\", \"ok\") == Some(2)\nString.lastIndexOf(\"beekeeper\", \"ee\") == Some(4)\nString.lastIndexOf(\"abcdefg\", \"xyz\") == None\n```" + "`lastIndexOfOpt(str, searchValue)`. Like `lastIndexOfOpt`, but return an\n`option`.\n\n## Examples\n\n```rescript\nString.lastIndexOfOpt(\"bookseller\", \"ok\") == Some(2)\nString.lastIndexOfOpt(\"beekeeper\", \"ee\") == Some(4)\nString.lastIndexOfOpt(\"abcdefg\", \"xyz\") == None\n```" ], "signature": "let lastIndexOfOpt: (string, string) => option" }, @@ -4860,7 +5784,7 @@ "kind": "value", "name": "normalize", "docstrings": [ - "`normalize(str)` returns the normalized Unicode string using Normalization Form\nCanonical (NFC) Composition. Consider the character ã, which can be represented\nas the single codepoint \\u00e3 or the combination of a lower case letter A\n\\u0061 and a combining tilde \\u0303. Normalization ensures that both can be\nstored in an equivalent binary representation.\nSee [`String.normalize`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize) on MDN.\nSee also [Unicode technical report #15](https://unicode.org/reports/tr15/) for details.\n\n## Examples\n\n```rescript\nlet string1 = \"\\uFB00\"\nlet string2 = \"\\u0066\\u0066\"\nConsole.log(string1 === string2) // false\n\nlet normalizeString1 = String.normalize(string1, \"NFKD\")\nlet normalizeString2 = String.normalize(string2, \"NFKD\")\nassert(normalizeString1 === normalizeString2)\n```" + "`normalize(str)` returns the normalized Unicode string using Normalization Form\nCanonical (NFC) Composition. Consider the character ã, which can be represented\nas the single codepoint \\u00e3 or the combination of a lower case letter A\n\\u0061 and a combining tilde \\u0303. Normalization ensures that both can be\nstored in an equivalent binary representation.\nSee [`String.normalize`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize) on MDN.\nSee also [Unicode technical report #15](https://unicode.org/reports/tr15/) for details.\n\n## Examples\n\n```rescript\nlet string1 = \"\\uFB00\"\nlet string2 = \"\\u0066\\u0066\"\nConsole.log(string1 === string2) // false\n\nlet normalizeString1 = String.normalize(string1)\nlet normalizeString2 = String.normalize(string2)\nassert(normalizeString1 === normalizeString2)\n```" ], "signature": "let normalize: string => string" }, @@ -4907,32 +5831,50 @@ ], "signature": "let replaceRegExp: (string, Core__RegExp.t, string) => string" }, + { + "id": "Core.String.replaceAll", + "kind": "value", + "name": "replaceAll", + "docstrings": [ + "`replaceAll(str, substr, newSubstr)` returns a new `string` which is\nidentical to `str` except with all matching instances of `substr` replaced\nby `newSubstr`. `substr` is treated as a verbatim string to match, not a\nregular expression.\nSee [`String.replaceAll`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll) on MDN.\n\n## Examples\n\n```rescript\nString.replaceAll(\"old old string\", \"old\", \"new\") == \"new new string\"\nString.replaceAll(\"the cat and the dog\", \"the\", \"this\") == \"this cat and this dog\"\n```" + ], + "signature": "let replaceAll: (string, string, string) => string" + }, + { + "id": "Core.String.replaceAllRegExp", + "kind": "value", + "name": "replaceAllRegExp", + "docstrings": [ + "`replaceAllRegExp(str, regex, replacement)` returns a new `string` where\nall occurrences matching regex have been replaced by `replacement`.\nThe pattern must include the global (`g`) flag or a runtime TypeError will be thrown.\nSee [`String.replaceAll`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll) on MDN.\n\n## Examples\n\n```rescript\nString.replaceAllRegExp(\"vowels be gone\", %re(\"/[aeiou]/g\"), \"x\") == \"vxwxls bx gxnx\"\nString.replaceAllRegExp(\"aabbcc\", %re(\"/b/g\"), \".\") == \"aa..cc\"\n```" + ], + "signature": "let replaceAllRegExp: (string, Core__RegExp.t, string) => string" + }, { "id": "Core.String.unsafeReplaceRegExpBy0", "kind": "value", "name": "unsafeReplaceRegExpBy0", "docstrings": [ - "`unsafeReplaceRegExpBy0(str, regex, f)` returns a new `string` with some or all\nmatches of a pattern with no capturing parentheses replaced by the value\nreturned from the given function. The function receives as its parameters the\nmatched string, the offset at which the match begins, and the whole string being\nmatched.\nSee [`String.replace`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) on MDN.\n\n## Examples\n\n```rescript\nlet str = \"beautiful vowels\"\nlet re = %re(\"/[aeiou]/g\")\nlet matchFn = (matchPart, _offset, _wholeString) => String.toUpperCase(matchPart)\nString.unsafeReplaceRegExpBy0(str, re, matchFn) == \"bEAUtIfUl vOwEls\"\n```" + "`unsafeReplaceRegExpBy0(str, regex, f)` returns a new `string` with some or all\nmatches of a pattern with no capturing parentheses replaced by the value\nreturned from the given function. The function receives as its parameters the\nmatched string, the offset at which the match begins, and the whole string being\nmatched.\nSee [`String.replace`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) on MDN.\n\n## Examples\n\n```rescript\nlet str = \"beautiful vowels\"\nlet re = %re(\"/[aeiou]/g\")\nlet matchFn = (~match, ~offset as _, ~input as _) => String.toUpperCase(match)\nString.unsafeReplaceRegExpBy0(str, re, matchFn) == \"bEAUtIfUl vOwEls\"\n```" ], - "signature": "let unsafeReplaceRegExpBy0: (\\n string,\\n Core__RegExp.t,\\n (~match: string, ~offset: int, ~input: string) => string,\\n) => string" + "signature": "let unsafeReplaceRegExpBy0: (\n string,\n Core__RegExp.t,\n (~match: string, ~offset: int, ~input: string) => string,\n) => string" }, { "id": "Core.String.unsafeReplaceRegExpBy1", "kind": "value", "name": "unsafeReplaceRegExpBy1", "docstrings": [ - "`unsafeReplaceRegExpBy1(str, regexp, f)`. Like `unsafeReplaceRegExpBy0`, but `f`\nhas `group1` parameter.\nSee [`String.replace`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) on MDN.\n\n## Examples\n\n```rescript\nlet str = \"Jony is 40\"\nlet re = %re(\"/(Jony is )\\d+/g\")\nlet matchFn = (_match, part1, _offset, _wholeString) => {\n part1 ++ \"41\"\n}\nString.unsafeReplaceRegExpBy1(str, re, matchFn) == \"Jony is 41\"\n```" + "`unsafeReplaceRegExpBy1(str, regexp, f)`. Like `unsafeReplaceRegExpBy0`, but `f`\nhas `group1` parameter.\nSee [`String.replace`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) on MDN.\n\n## Examples\n\n```rescript\nlet str = \"Jony is 40\"\nlet re = %re(\"/(Jony is )\\d+/g\")\nlet matchFn = (~match as _, ~group1, ~offset as _, ~input as _) => {\n group1 ++ \"41\"\n}\nString.unsafeReplaceRegExpBy1(str, re, matchFn) == \"Jony is 41\"\n```" ], - "signature": "let unsafeReplaceRegExpBy1: (\\n string,\\n Core__RegExp.t,\\n (\\n ~match: string,\\n ~group1: string,\\n ~offset: int,\\n ~input: string,\\n ) => string,\\n) => string" + "signature": "let unsafeReplaceRegExpBy1: (\n string,\n Core__RegExp.t,\n (\n ~match: string,\n ~group1: string,\n ~offset: int,\n ~input: string,\n ) => string,\n) => string" }, { "id": "Core.String.unsafeReplaceRegExpBy2", "kind": "value", "name": "unsafeReplaceRegExpBy2", "docstrings": [ - "`unsafeReplaceRegExpBy2(str, regexp, f)`. Like `unsafeReplaceRegExpBy1`, but `f`\nhas two group parameters.\nSee [`String.replace`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) on MDN.\n\n## Examples\n\n```rescript\nlet str = \"7 times 6\"\nlet re = %re(\"/(\\d+) times (\\d+)/\")\nlet matchFn = (_match, p1, p2, _offset, _wholeString) => {\n switch (Int.fromString(p1), Int.fromString(p2)) {\n | (Some(x), Some(y)) => Int.toString(x * y)\n | _ => \"???\"\n }\n}\nString.unsafeReplaceRegExpBy2(str, re, matchFn) == \"42\"\n```" + "`unsafeReplaceRegExpBy2(str, regexp, f)`. Like `unsafeReplaceRegExpBy1`, but `f`\nhas two group parameters.\nSee [`String.replace`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) on MDN.\n\n## Examples\n\n```rescript\nlet str = \"7 times 6\"\nlet re = %re(\"/(\\d+) times (\\d+)/\")\nlet matchFn = (~match as _, ~group1, ~group2, ~offset as _, ~input as _) => {\n switch (Int.fromString(group1), Int.fromString(group2)) {\n | (Some(x), Some(y)) => Int.toString(x * y)\n | _ => \"???\"\n }\n}\nString.unsafeReplaceRegExpBy2(str, re, matchFn) == \"42\"\n```" ], - "signature": "let unsafeReplaceRegExpBy2: (\\n string,\\n Core__RegExp.t,\\n (\\n ~match: string,\\n ~group1: string,\\n ~group2: string,\\n ~offset: int,\\n ~input: string,\\n ) => string,\\n) => string" + "signature": "let unsafeReplaceRegExpBy2: (\n string,\n Core__RegExp.t,\n (\n ~match: string,\n ~group1: string,\n ~group2: string,\n ~offset: int,\n ~input: string,\n ) => string,\n) => string" }, { "id": "Core.String.unsafeReplaceRegExpBy3", @@ -4941,7 +5883,7 @@ "docstrings": [ "`unsafeReplaceRegExpBy3(str, regexp, f)`. Like `unsafeReplaceRegExpBy1`, but `f`\nhas three group parameters.\nSee [`String.replace`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) on MDN." ], - "signature": "let unsafeReplaceRegExpBy3: (\\n string,\\n Core__RegExp.t,\\n (\\n ~match: string,\\n ~group1: string,\\n ~group2: string,\\n ~group3: string,\\n ~offset: int,\\n ~input: string,\\n ) => string,\\n) => string" + "signature": "let unsafeReplaceRegExpBy3: (\n string,\n Core__RegExp.t,\n (\n ~match: string,\n ~group1: string,\n ~group2: string,\n ~group3: string,\n ~offset: int,\n ~input: string,\n ) => string,\n) => string" }, { "id": "Core.String.search", @@ -4957,7 +5899,7 @@ "kind": "value", "name": "searchOpt", "docstrings": [ - "`searchOpt(str, regexp)`. Like `search`, but return an `option`.\n\n## Examples\n\n```rescript\nString.search(\"testing 1 2 3\", %re(\"/\\d+/\")) == Some(8)\nString.search(\"no numbers\", %re(\"/\\d+/\")) == None\n```" + "`searchOpt(str, regexp)`. Like `search`, but return an `option`.\n\n## Examples\n\n```rescript\nString.searchOpt(\"testing 1 2 3\", %re(\"/\\d+/\")) == Some(8)\nString.searchOpt(\"no numbers\", %re(\"/\\d+/\")) == None\n```" ], "signature": "let searchOpt: (string, Core__RegExp.t) => option" }, @@ -4993,7 +5935,7 @@ "kind": "value", "name": "splitAtMost", "docstrings": [ - "`splitAtMost(str, delimiter, ~limit)` splits the given `str` at every\noccurrence of `delimiter` and returns an array of the first `limit` resulting\nsubstrings. If `limit` is negative or greater than the number of substrings,\nthe array will contain all the substrings.\n\n## Examples\n\n```rescript\nString.splitAtMost(\"ant/bee/cat/dog/elk\", \"/\", ~limit=3) = [\"ant\", \"bee\", \"cat\"]\nString.splitAtMost(\"ant/bee/cat/dog/elk\", \"/\", ~limit=0) = []\nString.splitAtMost(\"ant/bee/cat/dog/elk\", \"/\", ~limit=9) = [\"ant\", \"bee\", \"cat\", \"dog\", \"elk\"]\n```" + "`splitAtMost(str, delimiter, ~limit)` splits the given `str` at every\noccurrence of `delimiter` and returns an array of the first `limit` resulting\nsubstrings. If `limit` is negative or greater than the number of substrings,\nthe array will contain all the substrings.\n\n## Examples\n\n```rescript\nString.splitAtMost(\"ant/bee/cat/dog/elk\", \"/\", ~limit=3) == [\"ant\", \"bee\", \"cat\"]\nString.splitAtMost(\"ant/bee/cat/dog/elk\", \"/\", ~limit=0) == []\nString.splitAtMost(\"ant/bee/cat/dog/elk\", \"/\", ~limit=9) == [\"ant\", \"bee\", \"cat\", \"dog\", \"elk\"]\n```" ], "signature": "let splitAtMost: (string, string, ~limit: int) => array" }, @@ -5013,7 +5955,7 @@ "docstrings": [ "`splitByRegExpAtMost(str, regexp, ~limit)` splits the given `str` at every\noccurrence of `regexp` and returns an array of the first `limit` resulting\nsubstrings. If `limit` is negative or greater than the number of substrings, the\narray will contain all the substrings.\nSee [`String.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split) on MDN.\n\n## Examples\n\n```rescript\nString.splitByRegExpAtMost(\"Hello World. How are you doing?\", %re(\"/ /\"), ~limit=3) == [\n Some(\"Hello\"),\n Some(\"World.\"),\n Some(\"How\"),\n]\n```" ], - "signature": "let splitByRegExpAtMost: (\\n string,\\n Core__RegExp.t,\\n ~limit: int,\\n) => array>" + "signature": "let splitByRegExpAtMost: (\n string,\n Core__RegExp.t,\n ~limit: int,\n) => array>" }, { "id": "Core.String.startsWith", @@ -5167,7 +6109,9 @@ "core/regexp": { "id": "Core.RegExp", "name": "RegExp", - "docstrings": [], + "docstrings": [ + "Functions for handling RegExp's in ReScript.\n\nSee [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) on MDN." + ], "items": [ { "id": "Core.RegExp.t", @@ -5282,7 +6226,9 @@ "core/promise": { "id": "Core.Promise", "name": "Promise", - "docstrings": [], + "docstrings": [ + "Functions for interacting with JavaScript Promise.\nSee: [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)." + ], "items": [ { "id": "Core.Promise.t", @@ -5314,9 +6260,9 @@ "kind": "value", "name": "make", "docstrings": [ - "`make(callback)` creates a new Promise based on a `callback` that receives two\nuncurried functions `resolve` and `reject` for defining the Promise's result.\n\n## Examples\n\n```rescript\nopen Promise\n\nlet n = 4\nPromise.make((resolve, reject) => {\n if(n < 5) {\n resolve(. \"success\")\n }\n else {\n reject(. \"failed\")\n }\n})\n->then(str => {\n Console.log(str)->resolve\n})\n->catch(e => {\n Console.log(\"Error occurred\")\n resolve()\n})\n->ignore\n```" + "`make(callback)` creates a new Promise based on a `callback` that receives two\nuncurried functions `resolve` and `reject` for defining the Promise's result.\n\n## Examples\n\n```rescript\nopen Promise\n\nlet n = 4\nPromise.make((resolve, reject) => {\n if(n < 5) {\n resolve(. \"success\")\n }\n else {\n reject(. \"failed\")\n }\n})\n->then(str => {\n Console.log(str)->resolve\n})\n->catch(_ => {\n Console.log(\"Error occurred\")\n resolve()\n})\n->ignore\n```" ], - "signature": "let make: (((. 'a) => unit, (. 'e) => unit) => unit) => t<'a>" + "signature": "let make: (('a => unit, 'e => unit) => unit) => t<'a>" }, { "id": "Core.Promise.catch", @@ -5332,7 +6278,7 @@ "kind": "value", "name": "then", "docstrings": [ - "`then(promise, callback)` returns a new promise based on the result of `promise`'s \nvalue. The `callback` needs to explicitly return a new promise via `resolve`.\nIt is **not allowed** to resolve a nested promise (like `resolve(resolve(1))`).\nSee [`Promise.then`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then) on MDN.\n## Examples\n\n```rescript\nPromise.resolve(5)\n->then(num => {\n resolve(num + 5)\n})\n->then(num => {\n Console.log2(\"Your lucky number is: \", num)\n resolve()\n})\n->ignore\n```" + "`then(promise, callback)` returns a new promise based on the result of `promise`'s \nvalue. The `callback` needs to explicitly return a new promise via `resolve`.\nIt is **not allowed** to resolve a nested promise (like `resolve(resolve(1))`).\nSee [`Promise.then`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then) on MDN.\n## Examples\n\n```rescript\nopen Promise\nresolve(5)\n->then(num => {\n resolve(num + 5)\n})\n->then(num => {\n Console.log2(\"Your lucky number is: \", num)\n resolve()\n})\n->ignore\n```" ], "signature": "let then: (t<'a>, 'a => t<'b>) => t<'b>" }, @@ -5341,7 +6287,7 @@ "kind": "value", "name": "thenResolve", "docstrings": [ - "`thenResolve(promise, callback)` converts an encapsulated value of a promise\ninto another promise wrapped value. It is **not allowed** to return a promise\nwithin the provided callback (e.g. `thenResolve(value => resolve(value))`).\n\n## Examples\n\n```rescript\nresolve(\"Anna\")\n->thenResolve(str => {\n \"Hello \" ++ str\n})\n->thenResolve(str => {\n Console.log(str)\n})\n->ignore // Ignore needed for side-effects\n```\n\nIn case you want to return another promise in your `callback`, consider using\n`then` instead." + "`thenResolve(promise, callback)` converts an encapsulated value of a promise\ninto another promise wrapped value. It is **not allowed** to return a promise\nwithin the provided callback (e.g. `thenResolve(value => resolve(value))`).\n\n## Examples\n\n```rescript\nopen Promise\nresolve(\"Anna\")\n->thenResolve(str => {\n \"Hello \" ++ str\n})\n->thenResolve(str => {\n Console.log(str)\n})\n->ignore // Ignore needed for side-effects\n```\n\nIn case you want to return another promise in your `callback`, consider using\n`then` instead." ], "signature": "let thenResolve: (t<'a>, 'a => 'b) => t<'b>" }, @@ -5350,7 +6296,7 @@ "kind": "value", "name": "finally", "docstrings": [ - "`finally(promise, callback)` is used to execute a function that is called no\nmatter if a promise was resolved or rejected. It will return the same `promise`\nit originally received. See [`Promise.finally`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally) on MDN.\n\n## Examples\n\n```rescript\nexception SomeError(string)\nlet isDone = ref(false)\n\nresolve(5)\n->then(_ => {\n reject(TestError(\"test\"))\n})\n->then(v => {\n Console.log2(\"final result\", v)\n resolve()\n})\n->catch(_ => {\n Console.log(\"Error handled\")\n resolve()\n})\n->finally(() => {\n Console.log(\"finally\")\n isDone := true\n})\n->then(() => {\n Console.log2(\"isDone:\", isDone.contents)\n resolve()\n})\n->ignore\n```" + "`finally(promise, callback)` is used to execute a function that is called no\nmatter if a promise was resolved or rejected. It will return the same `promise`\nit originally received. See [`Promise.finally`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally) on MDN.\n\n## Examples\n\n```rescript\nopen Promise\nexception SomeError(string)\nlet isDone = ref(false)\n\nresolve(5)\n->then(_ => {\n reject(SomeError(\"test\"))\n})\n->then(v => {\n Console.log2(\"final result\", v)\n resolve()\n})\n->catch(_ => {\n Console.log(\"Error handled\")\n resolve()\n})\n->finally(() => {\n Console.log(\"finally\")\n isDone := true\n})\n->then(() => {\n Console.log2(\"isDone:\", isDone.contents)\n resolve()\n})\n->ignore\n```" ], "signature": "let finally: (t<'a>, unit => unit) => t<'a>" }, @@ -5359,7 +6305,7 @@ "kind": "value", "name": "race", "docstrings": [ - "`race(arr)` combining `array` of promises. See [`Promise.race`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race) on MDN.\n\n## Examples\n\n```rescript\nopen Promise\nlet racer = (ms, name) => {\n Promise.make((resolve, _) => {\n Global.setTimeout(() => {\n resolve(. name)\n }, ms)->ignore\n })\n}\n\nlet promises = [racer(1000, \"Turtle\"), racer(500, \"Hare\"), racer(100, \"Eagle\")]\n\nrace(promises)->then(winner => {\n Console.log(\"The winner is \" ++ winner)\n resolve()\n})\n```" + "`race(arr)` combining `array` of promises. See [`Promise.race`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race) on MDN.\n\n## Examples\n\n```rescript\nopen Promise\nlet racer = (ms, name) => {\n Promise.make((resolve, _) => {\n setTimeout(() => {\n resolve(name)\n }, ms)->ignore\n })\n}\n\nlet promises = [racer(1000, \"Turtle\"), racer(500, \"Hare\"), racer(100, \"Eagle\")]\n\nrace(promises)->then(winner => {\n Console.log(\"The winner is \" ++ winner)\n resolve()\n})\n```" ], "signature": "let race: array> => t<'a>" }, @@ -5406,7 +6352,7 @@ "docstrings": [ "`all5((p1, p2, p3, p4, p5))`. Like `all()`, but with a fixed size tuple of 5" ], - "signature": "let all5: (\\n (t<'a>, t<'b>, t<'c>, t<'d>, t<'e>),\\n) => t<('a, 'b, 'c, 'd, 'e)>" + "signature": "let all5: (\n (t<'a>, t<'b>, t<'c>, t<'d>, t<'e>),\n) => t<('a, 'b, 'c, 'd, 'e)>" }, { "id": "Core.Promise.all6", @@ -5415,7 +6361,7 @@ "docstrings": [ "`all6((p1, p2, p4, p5, p6))`. Like `all()`, but with a fixed size tuple of 6\n\")" ], - "signature": "let all6: (\\n (t<'a>, t<'b>, t<'c>, t<'d>, t<'e>, t<'f>),\\n) => t<('a, 'b, 'c, 'd, 'e, 'f)>" + "signature": "let all6: (\n (t<'a>, t<'b>, t<'c>, t<'d>, t<'e>, t<'f>),\n) => t<('a, 'b, 'c, 'd, 'e, 'f)>" }, { "id": "Core.Promise.done", @@ -5504,13 +6450,13 @@ "docstrings": [], "items": [ { - "id": "Core.Object.empty", + "id": "Core.Object.make", "kind": "value", - "name": "empty", + "name": "make", "docstrings": [ - "`empty` create a new object that inherits the properties and methods from the standard built-in Object, such as `toString`. See [Object on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)\n\n## Examples\n\n```rescript\nlet x = Object.empty()\nx->Object.keysToArray->Array.length // 0\nx->Object.get(\"toString\")->Option.isSome // true\n```" + "`make` create a new object that inherits the properties and methods from the standard built-in Object, such as `toString`. See [Object on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)\n\n## Examples\n\n```rescript\nlet x = Object.make()\nx->Object.keysToArray->Array.length // 0\nx->Object.get(\"toString\")->Option.isSome // true\n```" ], - "signature": "let empty: unit => {..}" + "signature": "let make: unit => {..}" }, { "id": "Core.Object.is", @@ -5590,7 +6536,7 @@ "kind": "value", "name": "getSymbol", "docstrings": [ - "`getSymbol` gets the value of a property by symbol. Returns `None` if the property does not exist or has the value `undefined`. Otherwise returns `Some`, including if the value is `null`.\n\n## Examples\n\n```rescript\nlet fruit = Symbol.make(\"fruit\")\nlet x = Object.empty()\nx->Object.setSymbol(fruit, \"banana\")\nx->Object.getSymbol(fruit) // Some(\"banana\")\n```" + "`getSymbol` gets the value of a property by symbol. Returns `None` if the property does not exist or has the value `undefined`. Otherwise returns `Some`, including if the value is `null`.\n\n## Examples\n\n```rescript\nlet fruit = Symbol.make(\"fruit\")\nlet x = Object.make()\nx->Object.setSymbol(fruit, \"banana\")\nx->Object.getSymbol(fruit) // Some(\"banana\")\n```" ], "signature": "let getSymbol: ({..}, Core__Symbol.t) => option<'a>" }, @@ -5622,7 +6568,7 @@ "kind": "value", "name": "keysToArray", "docstrings": [ - "`keysToArray` returns an array of an object's own enumerable string-keyed property names. See [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.keys) \nor [Object.keys on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys).\n\n## Examples\n\n```rescript\n{\"a\": 1, \"b\": 2}->Object.keysToArray // [\"a\", \"b\"]\n{\"a\": None}->Object.keysToArray // [\"a\"]\nObject.empty()->Object.keysToArray // []\n```" + "`keysToArray` returns an array of an object's own enumerable string-keyed property names. See [ECMAScript Language Specification](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.keys) \nor [Object.keys on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys).\n\n## Examples\n\n```rescript\n{\"a\": 1, \"b\": 2}->Object.keysToArray // [\"a\", \"b\"]\n{\"a\": None}->Object.keysToArray // [\"a\"]\nObject.make()->Object.keysToArray // []\n```" ], "signature": "let keysToArray: {..} => array" }, @@ -5631,7 +6577,7 @@ "kind": "value", "name": "hasOwnProperty", "docstrings": [ - "`hasOwnProperty` determines whether the object has the specified property as its **own** property, as opposed to inheriting it. See [hasOwnProperty on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty)\n\n## Examples\n\n```rescript\nlet point = {\"x\": 1, \"y\": 2}\n{\"a\": 1}->hasOwnProperty(\"a\") // true\n{\"a\": 1}->hasOwnProperty(\"b\") // false\n{\"a\": 1}->hasOwnProperty(\"toString\") // false\n```" + "`hasOwnProperty` determines whether the object has the specified property as its **own** property, as opposed to inheriting it. See [hasOwnProperty on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty)\n\n## Examples\n\n```rescript\nlet point = {\"x\": 1, \"y\": 2}\n{\"a\": 1}->Object.hasOwnProperty(\"a\") // true\n{\"a\": 1}->Object.hasOwnProperty(\"b\") // false\n{\"a\": 1}->Object.hasOwnProperty(\"toString\") // false\n```" ], "signature": "let hasOwnProperty: ({..}, string) => bool" }, @@ -5694,7 +6640,9 @@ "core/nullable": { "id": "Core.Nullable", "name": "Nullable", - "docstrings": [], + "docstrings": [ + "Functions for handling nullable values.\n\nPrimarily useful when interoping with JavaScript when you don't know whether you'll get a value, `null` or `undefined`." + ], "items": [ { "id": "Core.Nullable.t", @@ -5703,7 +6651,7 @@ "docstrings": [ "Type representing a nullable value.\nA nullable value can be the value `'a`, `null` or `undefined`." ], - "signature": "type t<'a> = Js.Nullable.t<'a>" + "signature": "type t<'a> = Js.Nullable.t<'a> =\n | Value('a)\n | Null\n | Undefined" }, { "id": "Core.Nullable.null", @@ -5744,7 +6692,7 @@ "kind": "value", "name": "compare", "docstrings": [], - "signature": "let compare: (\\n t<'a>,\\n t<'b>,\\n ('a, 'b) => Core__Ordering.t,\\n) => Core__Ordering.t" + "signature": "let compare: (\n t<'a>,\n t<'b>,\n ('a, 'b) => Core__Ordering.t,\n) => Core__Ordering.t" }, { "id": "Core.Nullable.toOption", @@ -5769,7 +6717,7 @@ "kind": "value", "name": "getOr", "docstrings": [ - "`getOr(value, default)` returns `value` if not `null` or `undefined`,\notherwise return `default`.\n\n## Examples\n\n```rescript\nNullable.getOr(Nullable.null, \"Banana\") // Banana\nNullable.getOr(Nulalble.make(\"Apple\"), \"Banana\") // Apple\n\nlet greet = (firstName: option) =>\n \"Greetings \" ++ firstName->Nullable.getOr(\"Anonymous\")\n\nNullable.make(\"Jane\")->greet // \"Greetings Jane\"\nNullable.null->greet // \"Greetings Anonymous\"\n```" + "`getOr(value, default)` returns `value` if not `null` or `undefined`,\notherwise return `default`.\n\n## Examples\n\n```rescript\nNullable.getOr(Nullable.null, \"Banana\") // Banana\nNullable.getOr(Nullable.make(\"Apple\"), \"Banana\") // Apple\n\nlet greet = (firstName: option) =>\n \"Greetings \" ++ firstName->Option.getOr(\"Anonymous\")\n\nNullable.make(\"Jane\")->Nullable.toOption->greet // \"Greetings Jane\"\nNullable.null->Nullable.toOption->greet // \"Greetings Anonymous\"\n```" ], "signature": "let getOr: (t<'a>, 'a) => 'a" }, @@ -5848,7 +6796,9 @@ "core/null": { "id": "Core.Null", "name": "Null", - "docstrings": [], + "docstrings": [ + "Functions for handling values that could be `null`.\n\nIf you also need to cover `undefined`, check out `Nullable` instead." + ], "items": [ { "id": "Core.Null.t", @@ -5857,7 +6807,7 @@ "docstrings": [ "A type representing a value that can be either `'a` or `null`." ], - "signature": "type t<'a> = Js.Null.t<'a>" + "signature": "type t<'a> = Js.Null.t<'a> = Value('a) | Null" }, { "id": "Core.Null.asNullable", @@ -5898,7 +6848,7 @@ "kind": "value", "name": "compare", "docstrings": [], - "signature": "let compare: (\\n t<'a>,\\n t<'b>,\\n ('a, 'b) => Core__Ordering.t,\\n) => Core__Ordering.t" + "signature": "let compare: (\n t<'a>,\n t<'b>,\n ('a, 'b) => Core__Ordering.t,\n) => Core__Ordering.t" }, { "id": "Core.Null.toOption", @@ -5914,7 +6864,7 @@ "kind": "value", "name": "fromOption", "docstrings": [ - "Turns an `option` into a `Null.t`. `None` will be converted to `null`.\n\n## Examples\n```rescript\nlet optString: option = None\nlet asNull = optString->Null.fromOption // Null.t\nConsole.log(asNull == null) // Logs `true` to the console.\n```" + "Turns an `option` into a `Null.t`. `None` will be converted to `null`.\n\n## Examples\n```rescript\nlet optString: option = None\nlet asNull = optString->Null.fromOption // Null.t\nConsole.log(asNull == Null.null) // Logs `true` to the console.\n```" ], "signature": "let fromOption: option<'a> => t<'a>" }, @@ -5923,7 +6873,7 @@ "kind": "value", "name": "getOr", "docstrings": [ - "`getOr(value, default)` returns `value` if not `null`, otherwise return\n`default`.\n\n## Examples\n\n```rescript\nNull.getOr(null, \"Banana\") // Banana\nNull.getOr(Nulalble.make(\"Apple\"), \"Banana\") // Apple\n\nlet greet = (firstName: option) =>\n \"Greetings \" ++ firstName->Null.getOr(\"Anonymous\")\n\nNull.make(\"Jane\")->greet // \"Greetings Jane\"\nnull->greet // \"Greetings Anonymous\"\n```" + "`getOr(value, default)` returns `value` if not `null`, otherwise return\n`default`.\n\n## Examples\n\n```rescript\nNull.getOr(Null.null, \"Banana\") // Banana\nNull.getOr(Null.make(\"Apple\"), \"Banana\") // Apple\n\nlet greet = (firstName: option) =>\n \"Greetings \" ++ firstName->Option.getOr(\"Anonymous\")\n\nNull.make(\"Jane\")->Null.toOption->greet // \"Greetings Jane\"\nNull.null->Null.toOption->greet // \"Greetings Anonymous\"\n```" ], "signature": "let getOr: (t<'a>, 'a) => 'a" }, @@ -5940,7 +6890,7 @@ "kind": "value", "name": "getExn", "docstrings": [ - "`getExn(value)` raises an exception if `null`, otherwise returns the value.\n\n```rescript\nNull.getExn(Null.make(3)) // 3\nNull.getExn(null) /* Raises an Error */\n```\n\n## Exceptions\n\n- Raises `Invalid_argument` if `value` is `null`," + "`getExn(value)` raises an exception if `null`, otherwise returns the value.\n\n```rescript\nNull.getExn(Null.make(3)) // 3\nNull.getExn(Null.null) /* Raises an Error */\n```\n\n## Exceptions\n\n- Raises `Invalid_argument` if `value` is `null`," ], "signature": "let getExn: t<'a> => 'a" }, @@ -5949,7 +6899,7 @@ "kind": "value", "name": "getUnsafe", "docstrings": [ - "`getUnsafe(value)` returns `value`.\n\n## Examples\n\n```rescript\nNull.getUnsafe(Null.make(3)) == 3\nNull.getUnsafe(null) // Raises an error\n```\n\n## Important\n\n- This is an unsafe operation, it assumes `value` is not `null`." + "`getUnsafe(value)` returns `value`.\n\n## Examples\n\n```rescript\nNull.getUnsafe(Null.make(3)) == 3\nNull.getUnsafe(Null.null) // Raises an error\n```\n\n## Important\n\n- This is an unsafe operation, it assumes `value` is not `null`." ], "signature": "let getUnsafe: t<'a> => 'a" }, @@ -5958,7 +6908,7 @@ "kind": "value", "name": "forEach", "docstrings": [ - "`forEach(value, f)` call `f` on `value`. if `value` is not `null`, then if calls\n`f`, otherwise returns `unit`.\n\n## Examples\n\n```rescript\nNull.forEach(Null.make(\"thing\"), x => Console.log(x)) // logs \"thing\"\nNull.forEach(null, x => Console.log(x)) // returns ()\n```" + "`forEach(value, f)` call `f` on `value`. if `value` is not `null`, then if calls\n`f`, otherwise returns `unit`.\n\n## Examples\n\n```rescript\nNull.forEach(Null.make(\"thing\"), x => Console.log(x)) // logs \"thing\"\nNull.forEach(Null.null, x => Console.log(x)) // logs nothing\n```" ], "signature": "let forEach: (t<'a>, 'a => unit) => unit" }, @@ -5967,7 +6917,7 @@ "kind": "value", "name": "map", "docstrings": [ - "`map(value, f)` returns `f(value)` if `value` is not `null`, otherwise returns\n`value` unchanged.\n\n## Examples\n\n```rescript\nNull.map(Null.make(3), x => x * x) // Null.make(9)\nNull.map(null, x => x * x) // null\n```" + "`map(value, f)` returns `f(value)` if `value` is not `null`, otherwise returns\n`value` unchanged.\n\n## Examples\n\n```rescript\nNull.map(Null.make(3), x => x * x) // Null.make(9)\nNull.map(Null.null, x => x * x) // null\n```" ], "signature": "let map: (t<'a>, 'a => 'b) => t<'b>" }, @@ -5976,7 +6926,7 @@ "kind": "value", "name": "mapOr", "docstrings": [ - "`mapOr(value, default, f)` returns `f(value)` if `value` is not `null`,\notherwise returns `default`.\n\n## Examples\n\n```rescript\nlet someValue = Null.make(3)\nsomeValue->Null.mapOr(0, x => x + 5) // 8\n\nlet noneValue = null\nnoneValue->Null.mapOr(0, x => x + 5) // 0\n```" + "`mapOr(value, default, f)` returns `f(value)` if `value` is not `null`,\notherwise returns `default`.\n\n## Examples\n\n```rescript\nlet someValue = Null.make(3)\nsomeValue->Null.mapOr(0, x => x + 5) // 8\n\nlet noneValue = Null.null\nnoneValue->Null.mapOr(0, x => x + 5) // 0\n```" ], "signature": "let mapOr: (t<'a>, 'b, 'a => 'b) => 'b" }, @@ -5993,7 +6943,7 @@ "kind": "value", "name": "flatMap", "docstrings": [ - "`flatMap(value, f)` returns `f(value)` if `value` is not `null`, otherwise\nreturns `value` unchanged.\n\n## Examples\n\n```rescript\nlet addIfAboveOne = value =>\n if (value > 1) {\n Null.make(value + 1)\n } else {\n null\n }\n\nNull.flatMap(Null.make(2), addIfAboveOne) // Null.make(3)\nNull.flatMap(Null.make(-4), addIfAboveOne) // null\nNull.flatMap(null, addIfAboveOne) // null\n```" + "`flatMap(value, f)` returns `f(value)` if `value` is not `null`, otherwise\nreturns `value` unchanged.\n\n## Examples\n\n```rescript\nlet addIfAboveOne = value =>\n if (value > 1) {\n Null.make(value + 1)\n } else {\n Null.null\n }\n\nNull.flatMap(Null.make(2), addIfAboveOne) // Null.make(3)\nNull.flatMap(Null.make(-4), addIfAboveOne) // null\nNull.flatMap(Null.null, addIfAboveOne) // null\n```" ], "signature": "let flatMap: (t<'a>, 'a => t<'b>) => t<'b>" } @@ -6002,7 +6952,9 @@ "core/math": { "id": "Core.Math", "name": "Math", - "docstrings": [], + "docstrings": [ + "Functions for interacting with JavaScript Math.\nSee: [`Math`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math)." + ], "items": [ { "id": "Core.Math.abs", @@ -6018,7 +6970,7 @@ "kind": "value", "name": "acos", "docstrings": [ - "`acos(v)` returns arccosine (in radians) of argument `v`, returns `NaN` if the\nargument is outside the range [-1.0, 1.0].\nSee [`Math.acos`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acos) on MDN.\n\n## Examples\n\n```rescript\nMath.acos(-1) // 3.141592653589793\nMath.acos(-3)->Float.isNaN // true\n```" + "`acos(v)` returns arccosine (in radians) of argument `v`, returns `NaN` if the\nargument is outside the range [-1.0, 1.0].\nSee [`Math.acos`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acos) on MDN.\n\n## Examples\n\n```rescript\nMath.acos(-1.0) // 3.141592653589793\nMath.acos(-3.0)->Float.isNaN // true\n```" ], "signature": "let acos: float => float" }, @@ -6027,7 +6979,7 @@ "kind": "value", "name": "acosh", "docstrings": [ - "`acosh(v)` returns the inverse hyperbolic arccosine (in radians) of argument `v`,\nreturns `NaN` if the argument is less than `1.0`.\nSee [`Math.acosh`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acosh) on MDN.\n\n## Examples\n\n```rescript\nMath.acosh(1) // 0.0\nMath.acosh(0.5)->Float.isNaN // true\n```" + "`acosh(v)` returns the inverse hyperbolic arccosine (in radians) of argument `v`,\nreturns `NaN` if the argument is less than `1.0`.\nSee [`Math.acosh`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acosh) on MDN.\n\n## Examples\n\n```rescript\nMath.acosh(1.0) // 0.0\nMath.acosh(0.5)->Float.isNaN // true\n```" ], "signature": "let acosh: float => float" }, @@ -6045,7 +6997,7 @@ "kind": "value", "name": "asinh", "docstrings": [ - "`asinh(v)` returns the inverse hyperbolic sine of argument `v`.\nSee [`Math.asinh`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/asinh) on MDN.\n\n## Examples\n\n```rescript\nMath.asinh(-1) // -0.881373587019543\nMath.asinh(-0) // -0.0\n```" + "`asinh(v)` returns the inverse hyperbolic sine of argument `v`.\nSee [`Math.asinh`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/asinh) on MDN.\n\n## Examples\n\n```rescript\nMath.asinh(-1.0) // -0.881373587019543\nMath.asinh(-0.0) // -0.0\n```" ], "signature": "let asinh: float => float" }, @@ -6054,7 +7006,7 @@ "kind": "value", "name": "atan", "docstrings": [ - "`atan(v)` returns the inverse tangent (in radians) of argument `v`.\nSee [`Math.atan`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan) on MDN.\n\n## Examples\n\n```rescript\nMath.atan(-0.0) // -0.0\nMath.atan(0.0) // 0.0\nMath.atan(1) // 0.7853981633974483\n```" + "`atan(v)` returns the inverse tangent (in radians) of argument `v`.\nSee [`Math.atan`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan) on MDN.\n\n## Examples\n\n```rescript\nMath.atan(-0.0) // -0.0\nMath.atan(0.0) // 0.0\nMath.atan(1.0) // 0.7853981633974483\n```" ], "signature": "let atan: float => float" }, @@ -6162,7 +7114,7 @@ "kind": "value", "name": "hypotMany", "docstrings": [ - "`hypotMany(arr)` returns the square root of the sum of squares of the numbers in\nthe array argument (generalized Pythagorean equation). Using an array allows you\nto have more than two items. If `arr` is an empty array then returns `0.0`.\nSee [`Math.hypot`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/hypot) on MDN.\n\n## Examples\n\n```rescript\nMath.hypot([3.0, 4.0, 5.0]) // 7.0710678118654755\nMath.hypot([]) // 0.0\n```" + "`hypotMany(arr)` returns the square root of the sum of squares of the numbers in\nthe array argument (generalized Pythagorean equation). Using an array allows you\nto have more than two items. If `arr` is an empty array then returns `0.0`.\nSee [`Math.hypot`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/hypot) on MDN.\n\n## Examples\n\n```rescript\nMath.hypotMany([3.0, 4.0, 5.0]) // 7.0710678118654755\nMath.hypotMany([]) // 0.0\n```" ], "signature": "let hypotMany: array => float" }, @@ -6522,7 +7474,9 @@ "core/int": { "id": "Core.Int", "name": "Int", - "docstrings": [], + "docstrings": [ + "Functions for interacting with JavaScript Number.\nSee: [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)." + ], "items": [ { "id": "Core.Int.equal", @@ -6570,7 +7524,7 @@ "kind": "value", "name": "toFixedWithPrecision", "docstrings": [ - "`toFixedWithPrecision(n, ~digits)` return a `string` representing the given\nvalue using fixed-point notation. `digits` specifies how many digits should\nappear after the decimal point. See [`Number.toFixed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed)\non MDN.\n\n## Examples\n\n```rescript\nInt.toFixed(300, ~digits=4) // \"300.0000\"\nInt.toFixed(300, ~digits=1) // \"300.0\"\n```\n\n## Exceptions\n\n- `RangeError`: If `digits` is less than 0 or larger than 100." + "`toFixedWithPrecision(n, ~digits)` return a `string` representing the given\nvalue using fixed-point notation. `digits` specifies how many digits should\nappear after the decimal point. See [`Number.toFixed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed)\non MDN.\n\n## Examples\n\n```rescript\nInt.toFixedWithPrecision(300, ~digits=4) // \"300.0000\"\nInt.toFixedWithPrecision(300, ~digits=1) // \"300.0\"\n```\n\n## Exceptions\n\n- `RangeError`: If `digits` is less than 0 or larger than 100." ], "signature": "let toFixedWithPrecision: (int, ~digits: int) => string" }, @@ -6588,7 +7542,7 @@ "kind": "value", "name": "toPrecisionWithPrecision", "docstrings": [ - "`toPrecision(n, ~digits)` return a `string` representing the giver value with\nprecision. `digits` specifies the number of significant digits. See [`Number.toPrecision`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toPrecision) on MDN.\n\n## Examples\n\n```rescript\nInt.toPrecision(100, ~digits=2) // \"1.0e+2\"\nInt.toPrecision(1) // \"1.0\"\n```\n\n## Exceptions\n\n- `RangeError`: If `digits` is not between 1 and 100 (inclusive).\nImplementations are allowed to support larger and smaller values as well.\nECMA-262 only requires a precision of up to 21 significant digits." + "`toPrecisionWithPrecision(n, ~digits)` return a `string` representing the giver value with\nprecision. `digits` specifies the number of significant digits. See [`Number.toPrecision`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toPrecision) on MDN.\n\n## Examples\n\n```rescript\nInt.toPrecisionWithPrecision(100, ~digits=2) // \"1.0e+2\"\nInt.toPrecisionWithPrecision(1, ~digits=2) // \"1.0\"\n```\n\n## Exceptions\n\n- `RangeError`: If `digits` is not between 1 and 100 (inclusive).\nImplementations are allowed to support larger and smaller values as well.\nECMA-262 only requires a precision of up to 21 significant digits." ], "signature": "let toPrecisionWithPrecision: (int, ~digits: int) => string" }, @@ -6606,7 +7560,7 @@ "kind": "value", "name": "toStringWithRadix", "docstrings": [ - "`toStringWithRadix(n, ~radix)` return a `string` representing the given value.\n`~radix` specifies the radix base to use for the formatted number.\nSee [`Number.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString)\non MDN.\n\n## Examples\n\n```rescript\nInt.toString(6, ~radix=2) // \"110\"\nInt.toString(3735928559, ~radix=16) // \"deadbeef\"\nInt.toStringWithRadix(123456, ~radix=36) // \"2n9c\"\n```\n\n## Exceptions\n\n`RangeError`: if `radix` is less than 2 or greater than 36." + "`toStringWithRadix(n, ~radix)` return a `string` representing the given value.\n`~radix` specifies the radix base to use for the formatted number.\nSee [`Number.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString)\non MDN.\n\n## Examples\n\n```rescript\nInt.toStringWithRadix(6, ~radix=2) // \"110\"\nInt.toStringWithRadix(373592855, ~radix=16) // \"16449317\"\nInt.toStringWithRadix(123456, ~radix=36) // \"2n9c\"\n```\n\n## Exceptions\n\n`RangeError`: if `radix` is less than 2 or greater than 36." ], "signature": "let toStringWithRadix: (int, ~radix: int) => string" }, @@ -6696,7 +7650,9 @@ "core/float": { "id": "Core.Float", "name": "Float", - "docstrings": [], + "docstrings": [ + "Functions for interacting with float." + ], "items": [ { "id": "Core.Float.equal", @@ -6735,7 +7691,7 @@ "kind": "value", "name": "parseFloat", "docstrings": [ - "`parseFloat(v)` parse the given `v` and returns a float. Leading whitespace in\n`v` is ignored. Returns `NaN` if `v` can't be parsed. Use [`fromString`] to\nensure it returns a valid float and not `NaN`.\nSee [`parseFloat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat) on MDN.\n\n## Examples\n\n```rescript\nFloat.parseFloat(\"1.0\") // 1.0\nFloat.parseFloat(\" 3.14 \") // 3.14\nFloat.parseFloat(3.0) // 3.0\nFloat.parseFloat(\"3.14some non-digit characters\") // 3.14\nFloat.parseFloat(\"error\")->Float.isNaN // true\n```" + "`parseFloat(v)` parse the given `v` and returns a float. Leading whitespace in\n`v` is ignored. Returns `NaN` if `v` can't be parsed. Use [`fromString`] to\nensure it returns a valid float and not `NaN`.\nSee [`parseFloat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat) on MDN.\n\n## Examples\n\n```rescript\nFloat.parseFloat(\"1.0\") // 1.0\nFloat.parseFloat(\" 3.14 \") // 3.14\nFloat.parseFloat(\"3.0\") // 3.0\nFloat.parseFloat(\"3.14some non-digit characters\") // 3.14\nFloat.parseFloat(\"error\")->Float.isNaN // true\n```" ], "signature": "let parseFloat: string => float" }, @@ -6753,7 +7709,7 @@ "kind": "value", "name": "parseIntWithRadix", "docstrings": [ - "`parseIntWithRadix(v, ~radix)` parse the given `v` and returns a float. Leading\nwhitespace in this argument `v`is ignored. `radix` specifies the radix base to\nuse for the formatted number. The value must be in the range [2, 36] (inclusive).\nReturns `NaN` if `v` can't be parsed and `radix` is smaller than 2 or bigger\nthan 36.\nSee [`parseInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt) on MDN.\n\n## Examples\n\n```rescript\nFloat.parseInt(\"10.0\", ~radix=2) // 2.0\nFloat.parseInt(\"15 * 3\", ~radix=10) // 15.0\nFloat.parseInt(\"12\", ~radix=13) // 15.0\nFloat.parseInt(\"17\", ~radix=40)->Float.isNaN // true\n```" + "`parseIntWithRadix(v, ~radix)` parse the given `v` and returns a float. Leading\nwhitespace in this argument `v`is ignored. `radix` specifies the radix base to\nuse for the formatted number. The value must be in the range [2, 36] (inclusive).\nReturns `NaN` if `v` can't be parsed and `radix` is smaller than 2 or bigger\nthan 36.\nSee [`parseInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt) on MDN.\n\n## Examples\n\n```rescript\nFloat.parseIntWithRadix(\"10.0\", ~radix=2) // 2.0\nFloat.parseIntWithRadix(\"15 * 3\", ~radix=10) // 15.0\nFloat.parseIntWithRadix(\"12\", ~radix=13) // 15.0\nFloat.parseIntWithRadix(\"17\", ~radix=40)->Float.isNaN // true\n```" ], "signature": "let parseIntWithRadix: ('a, ~radix: int) => float" }, @@ -6789,7 +7745,7 @@ "kind": "value", "name": "toFixedWithPrecision", "docstrings": [ - "`toFixedWithPrecision(v, ~digits)` return a `string` representing the given\nvalue using fixed-point notation. `digits` specifies how many digits should\nappear after the decimal point.\nSee [`Number.toFixed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed) on MDN.\n\n## Examples\n\n```rescript\nFloat.toFixed(300.0, ~digits=4) // \"300.0000\"\nFloat.toFixed(300.0, ~digits=1) // \"300.0\"\n```\n\n## Exceptions\n\n- `RangeError`: If `digits` is less than 0 or larger than 100." + "`toFixedWithPrecision(v, ~digits)` return a `string` representing the given\nvalue using fixed-point notation. `digits` specifies how many digits should\nappear after the decimal point.\nSee [`Number.toFixed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed) on MDN.\n\n## Examples\n\n```rescript\nFloat.toFixedWithPrecision(300.0, ~digits=4) // \"300.0000\"\nFloat.toFixedWithPrecision(300.0, ~digits=1) // \"300.0\"\n```\n\n## Exceptions\n\n- `RangeError`: If `digits` is less than 0 or larger than 100." ], "signature": "let toFixedWithPrecision: (float, ~digits: int) => string" }, @@ -6807,7 +7763,7 @@ "kind": "value", "name": "toPrecisionWithPrecision", "docstrings": [ - "`toPrecision(v, ~digits)` return a `string` representing the giver value with\nprecision. `digits` specifies the number of significant digits.\nSee [`Number.toPrecision`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toPrecision) on MDN.\n\n## Examples\n\n```rescript\nFloat.toPrecision(100.0, ~digits=2) // \"1.0e+2\"\nFloat.toPrecision(1.0) // \"1.0\"\n```\n\n## Exceptions\n\n- `RangeError`: If `digits` is not between 1 and 100 (inclusive).\nImplementations are allowed to support larger and smaller values as well.\nECMA-262 only requires a precision of up to 21 significant digits." + "`toPrecisionWithPrecision(v, ~digits)` return a `string` representing the giver value with\nprecision. `digits` specifies the number of significant digits.\nSee [`Number.toPrecision`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toPrecision) on MDN.\n\n## Examples\n\n```rescript\nFloat.toPrecisionWithPrecision(100.0, ~digits=2) // \"1.0e+2\"\nFloat.toPrecisionWithPrecision(1.0, ~digits=1) // \"1\"\n```\n\n## Exceptions\n\n- `RangeError`: If `digits` is not between 1 and 100 (inclusive).\nImplementations are allowed to support larger and smaller values as well.\nECMA-262 only requires a precision of up to 21 significant digits." ], "signature": "let toPrecisionWithPrecision: (float, ~digits: int) => string" }, @@ -6825,7 +7781,7 @@ "kind": "value", "name": "toStringWithRadix", "docstrings": [ - "`toStringWithRadix(v, ~radix)` return a `string` representing the given value.\n`~radix` specifies the radix base to use for the formatted number.\nSee [`Number.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString) on MDN.\n\n## Examples\n\n```rescript\nFloat.toString(6.0, ~radix=2) // \"110\"\nFloat.toString(3735928559.0, ~radix=16) // \"deadbeef\"\nFloat.toStringWithRadix(123456.0, ~radix=36) // \"2n9c\"\n```\n\n## Exceptions\n\n`RangeError`: if `radix` is less than 2 or greater than 36." + "`toStringWithRadix(v, ~radix)` return a `string` representing the given value.\n`~radix` specifies the radix base to use for the formatted number.\nSee [`Number.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString) on MDN.\n\n## Examples\n\n```rescript\nFloat.toStringWithRadix(6.0, ~radix=2) // \"110\"\nFloat.toStringWithRadix(3735928559.0, ~radix=16) // \"deadbeef\"\nFloat.toStringWithRadix(123456.0, ~radix=36) // \"2n9c\"\n```\n\n## Exceptions\n\n`RangeError`: if `radix` is less than 2 or greater than 36." ], "signature": "let toStringWithRadix: (float, ~radix: int) => string" }, @@ -6834,7 +7790,7 @@ "kind": "value", "name": "toLocaleString", "docstrings": [ - "`toLocaleString(v)` return a `string` with language-sensitive representing the\ngiven value.\nSee [`Number.toLocaleString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString) on MDN.\n\n## Examples\n\n```rescript\n// If the application uses English as the default language\nInt.toLocaleString(1000.0) // \"1,000\"\n\n// If the application uses Portuguese Brazil as the default language\nInt.toLocaleString(1000.0) // \"1.000\"\n```" + "`toLocaleString(v)` return a `string` with language-sensitive representing the\ngiven value.\nSee [`Number.toLocaleString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString) on MDN.\n\n## Examples\n\n```rescript\n// If the application uses English as the default language\nFloat.toLocaleString(1000.0) // \"1,000\"\n\n// If the application uses Portuguese Brazil as the default language\nFloat.toLocaleString(1000.0) // \"1.000\"\n```" ], "signature": "let toLocaleString: float => string" }, @@ -6870,7 +7826,7 @@ "kind": "value", "name": "mod", "docstrings": [ - "`mod(n1, n2)` calculates the modulo (remainder after division) of two floats.\n\n## Examples\n\n```rescript\nInt.mod(7.0, 4.0) == 3\n```" + "`mod(n1, n2)` calculates the modulo (remainder after division) of two floats.\n\n## Examples\n\n```rescript\nFloat.mod(7.0, 4.0) == 3.0\n```" ], "signature": "let mod: (float, float) => float" }, @@ -6879,7 +7835,7 @@ "kind": "value", "name": "clamp", "docstrings": [ - "`clamp(~min=?, ~max=?, value)` returns `value`, optionally bounded by `min` and `max`.\n\nif `max` < `min` returns `min`.\n\n## Examples\n\n```rescript\nInt.clamp(4.2) == 4.2\nInt.clamp(4.2, ~min=4.3) == 4.3\nInt.clamp(4.2, ~max=4.1) == 4.1\nInt.clamp(4.2, ~min=4.3, ~max=4.1) == 4.3\n```" + "`clamp(~min=?, ~max=?, value)` returns `value`, optionally bounded by `min` and `max`.\n\nif `max` < `min` returns `min`.\n\n## Examples\n\n```rescript\nFloat.clamp(4.2) == 4.2\nFloat.clamp(4.2, ~min=4.3) == 4.3\nFloat.clamp(4.2, ~max=4.1) == 4.1\nFloat.clamp(4.2, ~min=4.3, ~max=4.1) == 4.3\n```" ], "signature": "let clamp: (~min: float=?, ~max: float=?, float) => float" } @@ -6888,7 +7844,9 @@ "core/error": { "id": "Core.Error", "name": "Error", - "docstrings": [], + "docstrings": [ + "Functions for working with JavaScript exceptions.\n\nSee [`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) on MDN." + ], "items": [ { "id": "Core.Error.t", @@ -6920,7 +7878,7 @@ "kind": "value", "name": "stack", "docstrings": [ - "`stack(error)` retrieves the `stack` property of the error, if it exists. The stack is a list of what functions were called, and what files they are defined in, prior to the error happening.\n\nSee [`Error.prototype.stack`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/Stack) on MDN.\n\n## Example\n```rescript\nConsole.log(someError->Error.stack) // Logs `stack` if it exists on `someError`\n```" + "`stack(error)` retrieves the `stack` property of the error, if it exists. The stack is a list of what functions were called, and what files they are defined in, prior to the error happening.\n\nSee [`Error.prototype.stack`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/Stack) on MDN.\n\n## Example\n```rescript\nlet error = Error.make(\"error\")\nConsole.log(error->Error.stack) // Logs `stack` if it exists on `someError`\n```" ], "signature": "let stack: t => option" }, @@ -6983,7 +7941,9 @@ "core/dict": { "id": "Core.Dict", "name": "Dict", - "docstrings": [], + "docstrings": [ + "A mutable dictionary with string keys.\n\nCompiles to a regular JavaScript object." + ], "items": [ { "id": "Core.Dict.t", @@ -6994,6 +7954,15 @@ ], "signature": "type t<'a> = Js.Dict.t<'a>" }, + { + "id": "Core.Dict.getUnsafe", + "kind": "value", + "name": "getUnsafe", + "docstrings": [ + "`getUnsafe(dict, key)` Returns the `value` at the provided `key`.\n\nThis is _unsafe_, meaning it will return `undefined` value if `key` does not exist in `dict`.\n\nUse `Dict.getUnsafe` only when you are sure the key exists (i.e. when iterating `Dict.keys` result).\n\n## Examples\n```rescript\nlet dict = Dict.fromArray([(\"key1\", \"value1\"), (\"key2\", \"value2\")])\nlet value = dict->Dict.getUnsafe(\"key1\")\nConsole.log(value) // value1\n```" + ], + "signature": "let getUnsafe: (t<'a>, string) => 'a" + }, { "id": "Core.Dict.get", "kind": "value", @@ -7092,13 +8061,42 @@ "`copy(dictionary)` [shallowly copies](https://developer.mozilla.org/en-US/docs/Glossary/Shallow_copy) the provided dictionary to a new dictionary.\n\n## Examples\n```rescript\nlet dict = Dict.fromArray([(\"key1\", \"value1\"), (\"key2\", \"value2\")])\nlet dict2 = dict->Dict.copy\n\n// Both log `[\"key1\", \"key2\"]` here.\nConsole.log2(dict->Dict.keysToArray, dict2->Dict.keysToArray)\n```" ], "signature": "let copy: t<'a> => t<'a>" + }, + { + "id": "Core.Dict.forEach", + "kind": "value", + "name": "forEach", + "docstrings": [ + "`forEach(dictionary, f)` iterates through all values of the dict.\n\n> Please note that this is *without the keys*, just the values. If you need the key as well, use `Dict.forEachWithKey`.\n\n## Examples\n```rescript\nlet dict = Dict.fromArray([(\"key1\", \"value1\"), (\"key2\", \"value2\")])\n\ndict->Dict.forEach(value => {\n Console.log(value)\n})\n```" + ], + "signature": "let forEach: (t<'a>, 'a => unit) => unit" + }, + { + "id": "Core.Dict.forEachWithKey", + "kind": "value", + "name": "forEachWithKey", + "docstrings": [ + "`forEachWithKey(dictionary, f)` iterates through all values of the dict, including the key for each value.\n\n## Examples\n```rescript\nlet dict = Dict.fromArray([(\"key1\", \"value1\"), (\"key2\", \"value2\")])\n\ndict->Dict.forEachWithKey((value, key) => {\n Console.log2(value, key)\n})\n```" + ], + "signature": "let forEachWithKey: (t<'a>, ('a, string) => unit) => unit" + }, + { + "id": "Core.Dict.mapValues", + "kind": "value", + "name": "mapValues", + "docstrings": [ + "`mapValues(dictionary, f)` returns a new dictionary with the same keys, and `f` applied to each value in the original dictionary.\n\n## Examples\n\n```rescript\nlet dict = Dict.fromArray([(\"key1\", 1), (\"key2\", 2)])\n\ndict->Dict.mapValues(v => v + 10)->Dict.toArray // [(\"key1\", 11), (\"key2\", 12)]\ndict->Dict.mapValues(Int.toString)->Dict.toArray // [(\"key1\", \"1\"), (\"key2\", \"2\")]\n```" + ], + "signature": "let mapValues: (t<'a>, 'a => 'b) => t<'b>" } ] }, "core/date": { "id": "Core.Date", "name": "Date", - "docstrings": [], + "docstrings": [ + "Functions for interacting with JavaScript Dates." + ], "items": [ { "id": "Core.Date.t", @@ -7125,7 +8123,7 @@ "docstrings": [ "A type representing date time format options.\n\nNote: There are some properties missing:\n- fractionalSecondDigits\n- dayPeriod\n- calendar\n- numberingSystem\n- localeMatcher\n- timeZone\n- hour12\n- hourCycle\n- formatMatcher\n\nSee full spec at https://tc39.es/ecma402/#datetimeformat-objects" ], - "signature": "type localeOptions = {\\n dateStyle?: [#full | #long | #medium | #short],\\n timeStyle?: [#full | #long | #medium | #short],\\n weekday?: [#long | #narrow | #short],\\n era?: [#long | #narrow | #short],\\n year?: [#\\\"2-digit\\\" | #numeric],\\n month?: [\\n | #\\\"2-digit\\\"\\n | #long\\n | #narrow\\n | #numeric\\n | #short\\n ],\\n day?: [#\\\"2-digit\\\" | #numeric],\\n hour?: [#\\\"2-digit\\\" | #numeric],\\n minute?: [#\\\"2-digit\\\" | #numeric],\\n second?: [#\\\"2-digit\\\" | #numeric],\\n timeZoneName?: [#long | #short],\\n}" + "signature": "type localeOptions = {\n dateStyle?: [#full | #long | #medium | #short],\n timeStyle?: [#full | #long | #medium | #short],\n weekday?: [#long | #narrow | #short],\n era?: [#long | #narrow | #short],\n year?: [#\"2-digit\" | #numeric],\n month?: [\n | #\"2-digit\"\n | #long\n | #narrow\n | #numeric\n | #short\n ],\n day?: [#\"2-digit\" | #numeric],\n hour?: [#\"2-digit\" | #numeric],\n minute?: [#\"2-digit\" | #numeric],\n second?: [#\"2-digit\" | #numeric],\n timeZoneName?: [#long | #short],\n}" }, { "id": "Core.Date.make", @@ -7141,7 +8139,7 @@ "kind": "value", "name": "fromString", "docstrings": [ - "`fromString(dateTimeString)`\n\nCreates a date object from given date time string.\nThe string has to be in the ISO 8601 format YYYY-MM-DDTHH:mm:ss.sssZ (https://tc39.es/ecma262/#sec-date-time-string-format).\n\nInvalid date time strings will create invalid dates.\nYou can use the result like any valid date, but many functions like `toString` will return \"Invalid Date\" or functions like `Date.getTime` will return NaN.\n\n## Examples\n```rescript\nDate.fromString(\"2023\")\n// 2023-01-01T00:00:00.000Z\n\nDate.fromString(\"2023-02-20\")\n// 2023-02-20T00:00:00.000Z\n\nDate.fromString(\"2023-02-20T16:40:00.00Z\")\n// 2023-02-20T16:40:00.000Z\n\nDate.fromString(\"\")\n// Invalid Date\n\nDate.fromString(\"\")->getTime\n// NaN\n```" + "`fromString(dateTimeString)`\n\nCreates a date object from given date time string.\nThe string has to be in the ISO 8601 format YYYY-MM-DDTHH:mm:ss.sssZ (https://tc39.es/ecma262/#sec-date-time-string-format).\n\nInvalid date time strings will create invalid dates.\nYou can use the result like any valid date, but many functions like `toString` will return \"Invalid Date\" or functions like `Date.getTime` will return NaN.\n\n## Examples\n```rescript\nDate.fromString(\"2023\") // 2023-01-01T00:00:00.000Z\n\nDate.fromString(\"2023-02-20\") // 2023-02-20T00:00:00.000Z\n\nDate.fromString(\"2023-02-20T16:40:00.00Z\") // 2023-02-20T16:40:00.000Z\n\nDate.fromString(\"\") // Invalid Date\n\nDate.fromString(\"\")->Date.getTime // NaN\n```" ], "signature": "let fromString: string => t" }, @@ -7188,7 +8186,7 @@ "docstrings": [ "Creates a date object with the given year, month, date (day of month), hours and minutes.\nBe aware of using a value for year < 100, because it behaves inconsistent (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#interpretation_of_two-digit_years).\nMonths are 0-indexed (0 = January, 11 = December).\nValues, which are out of range, will be carried over to the next bigger unit (s. example).\n\n## Examples\n```rescript\nDate.makeWithYMDHM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40)\n// 2023-02-20T16:40:00.000Z\n\nDate.makeWithYMDHM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=60)\n// 2023-02-20T17:00:00.000Z\n\nDate.makeWithYMDHM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=-1)\n// 2023-02-20T15:59:00.000Z\n\n// Note: The output depends on your local time zone.\n// In nodejs you can change it by using the TZ env (`export TZ='Europe/London' && node index.bs.js`)\n\n```" ], - "signature": "let makeWithYMDHM: (\\n ~year: int,\\n ~month: int,\\n ~date: int,\\n ~hours: int,\\n ~minutes: int,\\n) => t" + "signature": "let makeWithYMDHM: (\n ~year: int,\n ~month: int,\n ~date: int,\n ~hours: int,\n ~minutes: int,\n) => t" }, { "id": "Core.Date.makeWithYMDHMS", @@ -7197,7 +8195,7 @@ "docstrings": [ "Creates a date object with the given year, month, date (day of month), hours, minutes and seconds.\nBe aware of using a value for year < 100, because it behaves inconsistent (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#interpretation_of_two-digit_years).\nMonths are 0-indexed (0 = January, 11 = December).\nValues, which are out of range, will be carried over to the next bigger unit (s. example).\n\n## Examples\n```rescript\nDate.makeWithYMDHMS(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=0)\n// 2023-02-20T16:40:00.000Z\n\nDate.makeWithYMDHMS(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=60)\n// 2023-02-20T16:41:00.000Z\n\nDate.makeWithYMDHMS(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=-1)\n// 2023-02-20T16:39:59.000Z\n\n// Note: The output depends on your local time zone.\n// In nodejs you can change it by using the TZ env (`export TZ='Europe/London' && node index.bs.js`)\n\n```" ], - "signature": "let makeWithYMDHMS: (\\n ~year: int,\\n ~month: int,\\n ~date: int,\\n ~hours: int,\\n ~minutes: int,\\n ~seconds: int,\\n) => t" + "signature": "let makeWithYMDHMS: (\n ~year: int,\n ~month: int,\n ~date: int,\n ~hours: int,\n ~minutes: int,\n ~seconds: int,\n) => t" }, { "id": "Core.Date.makeWithYMDHMSM", @@ -7206,7 +8204,7 @@ "docstrings": [ "Creates a date object with the given year, month, date (day of month), hours, minutes, seconds and milliseconds.\nBe aware of using a value for year < 100, because it behaves inconsistent (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#interpretation_of_two-digit_years).\nMonths are 0-indexed (0 = January, 11 = December).\nValues, which are out of range, will be carried over to the next bigger unit (s. example).\n\n## Examples\n```rescript\nDate.makeWithYMDHMSM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=0, ~milliseconds=0)\n// 2023-02-20T16:40:00.000Z\n\nDate.makeWithYMDHMSM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=0, ~milliseconds=1000)\n// 2023-02-20T16:40:01.000Z\n\nDate.makeWithYMDHMSM(~year=2023, ~month=1, ~date=20, ~hours=16, ~minutes=40, ~seconds=0, ~milliseconds=-1)\n// 2023-02-20T16:39:59.999Z\n\n// Note: The output depends on your local time zone.\n// In nodejs you can change it by using the TZ env (`export TZ='Europe/London' && node index.bs.js`)\n\n```" ], - "signature": "let makeWithYMDHMSM: (\\n ~year: int,\\n ~month: int,\\n ~date: int,\\n ~hours: int,\\n ~minutes: int,\\n ~seconds: int,\\n ~milliseconds: int,\\n) => t" + "signature": "let makeWithYMDHMSM: (\n ~year: int,\n ~month: int,\n ~date: int,\n ~hours: int,\n ~minutes: int,\n ~seconds: int,\n ~milliseconds: int,\n) => t" }, { "id": "Core.Date.now", @@ -7400,7 +8398,7 @@ "docstrings": [ "`setHoursMSMs(date, ~hours, ~minutes, ~seconds, ~milliseconds)`\n\nSets the hours, minutes, seconds and milliseconds of a date (according to local time).\nBeware this will *mutate* the date.\n\n## Examples\n```rescript\nDate.fromString(\"2023-02-20T16:40:00.00\")->Date.setHoursMSMs(~hours=0, ~minutes=0, ~seconds=0, ~milliseconds=0)\n```" ], - "signature": "let setHoursMSMs: (\\n t,\\n ~hours: int,\\n ~minutes: int,\\n ~seconds: int,\\n ~milliseconds: int,\\n) => unit" + "signature": "let setHoursMSMs: (\n t,\n ~hours: int,\n ~minutes: int,\n ~seconds: int,\n ~milliseconds: int,\n) => unit" }, { "id": "Core.Date.setMinutes", @@ -7427,7 +8425,7 @@ "docstrings": [ "`setMinutesSMs(date, ~minutes, ~seconds, ~milliseconds)`\n\nSets the minutes, seconds and milliseconds of a date (according to local time).\nBeware this will *mutate* the date.\n\n## Examples\n```rescript\nDate.fromString(\"2023-02-20T16:40:00.00\")->Date.setMinutesSMs(~minutes=0, ~seconds=0, ~milliseconds=0)\n```" ], - "signature": "let setMinutesSMs: (\\n t,\\n ~minutes: int,\\n ~seconds: int,\\n ~milliseconds: int,\\n) => unit" + "signature": "let setMinutesSMs: (\n t,\n ~minutes: int,\n ~seconds: int,\n ~milliseconds: int,\n) => unit" }, { "id": "Core.Date.setSeconds", @@ -7461,7 +8459,7 @@ "kind": "value", "name": "getUTCFullYear", "docstrings": [ - "`getUTCFullYear(date)`\n\nReturns the year of a given date (according to UTC time).\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\").getUTCFullYear\n// 2022\n```" + "`getUTCFullYear(date)`\n\nReturns the year of a given date (according to UTC time).\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\")->Date.getUTCFullYear // 2022\n```" ], "signature": "let getUTCFullYear: t => int" }, @@ -7470,7 +8468,7 @@ "kind": "value", "name": "getUTCMonth", "docstrings": [ - "`getUTCMonth(date)`\n\nReturns the month of a given date (according to UTC time).\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\").getUTCMonth\n// 11\n```" + "`getUTCMonth(date)`\n\nReturns the month of a given date (according to UTC time).\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\")->Date.getUTCMonth // 11\n```" ], "signature": "let getUTCMonth: t => int" }, @@ -7479,7 +8477,7 @@ "kind": "value", "name": "getUTCDate", "docstrings": [ - "`getUTCDate(date)`\n\nReturns the date (day of month) of a given date (according to UTC time).\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\").getUTCDate\n// 31\n```" + "`getUTCDate(date)`\n\nReturns the date (day of month) of a given date (according to UTC time).\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\")->Date.getUTCDate // 31\n```" ], "signature": "let getUTCDate: t => int" }, @@ -7488,7 +8486,7 @@ "kind": "value", "name": "getUTCHours", "docstrings": [ - "`getUTCHours(date)`\n\nReturns the hours of a given date (according to UTC time).\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\").getUTCHours\n// 23\n```" + "`getUTCHours(date)`\n\nReturns the hours of a given date (according to UTC time).\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\")->Date.getUTCHours // 23\n```" ], "signature": "let getUTCHours: t => int" }, @@ -7497,7 +8495,7 @@ "kind": "value", "name": "getUTCMinutes", "docstrings": [ - "`getUTCMinutes(date)`\n\nReturns the minutes of a given date (according to UTC time).\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\").getUTCMinutes\n// 0\n```" + "`getUTCMinutes(date)`\n\nReturns the minutes of a given date (according to UTC time).\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\")->Date.getUTCMinutes // 0\n```" ], "signature": "let getUTCMinutes: t => int" }, @@ -7506,7 +8504,7 @@ "kind": "value", "name": "getUTCSeconds", "docstrings": [ - "`getUTCSeconds(date)`\n\nReturns the seconds of a given date (according to UTC time).\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\").getUTCSeconds\n// 0\n```" + "`getUTCSeconds(date)`\n\nReturns the seconds of a given date (according to UTC time).\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\")->Date.getUTCSeconds // 0\n```" ], "signature": "let getUTCSeconds: t => int" }, @@ -7515,7 +8513,7 @@ "kind": "value", "name": "getUTCMilliseconds", "docstrings": [ - "`getUTCMilliseconds(date)`\n\nReturns the milliseconds of a given date (according to UTC time).\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\").getUTCMilliseconds\n// 0\n```" + "`getUTCMilliseconds(date)`\n\nReturns the milliseconds of a given date (according to UTC time).\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\")->Date.getUTCMilliseconds // 0\n```" ], "signature": "let getUTCMilliseconds: t => int" }, @@ -7524,7 +8522,7 @@ "kind": "value", "name": "getUTCDay", "docstrings": [ - "`getUTCDay(date)`\n\nReturns the day (day of week) of a given date (according to UTC time).\n0 = Sunday, 1 = Monday, ... 6 = Saturday\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\").getUTCDay\n// 6\n```" + "`getUTCDay(date)`\n\nReturns the day (day of week) of a given date (according to UTC time).\n0 = Sunday, 1 = Monday, ... 6 = Saturday\n\n## Examples\n```rescript\nDate.fromString(\"2023-01-01T00:00:00.00+01:00\")->Date.getUTCDay // 6\n```" ], "signature": "let getUTCDay: t => int" }, @@ -7607,7 +8605,7 @@ "docstrings": [ "`setUTCHoursMSMs(date, ~hours, ~minutes, ~seconds, ~milliseconds)`\n\nSets the hours, minutes, seconds and milliseconds of a date (according to UTC time).\nBeware this will *mutate* the date.\n\n## Examples\n```rescript\nDate.fromString(\"2023-02-20T16:40:00.00\")->Date.setUTCHoursMSMs(~hours=0, ~minutes=0, ~seconds=0, ~milliseconds=0)\n```" ], - "signature": "let setUTCHoursMSMs: (\\n t,\\n ~hours: int,\\n ~minutes: int,\\n ~seconds: int,\\n ~milliseconds: int,\\n) => unit" + "signature": "let setUTCHoursMSMs: (\n t,\n ~hours: int,\n ~minutes: int,\n ~seconds: int,\n ~milliseconds: int,\n) => unit" }, { "id": "Core.Date.setUTCMinutes", @@ -7634,7 +8632,7 @@ "docstrings": [ "`setUTCMinutesSMs(date, ~minutes, ~seconds, ~milliseconds)`\n\nSets the minutes, seconds and milliseconds of a date (according to UTC time).\nBeware this will *mutate* the date.\n\n## Examples\n```rescript\nDate.fromString(\"2023-02-20T16:40:00.00\")->Date.setUTCMinutesSMs(~minutes=0, ~seconds=0, ~milliseconds=0)\n```" ], - "signature": "let setUTCMinutesSMs: (\\n t,\\n ~minutes: int,\\n ~seconds: int,\\n ~milliseconds: int,\\n) => unit" + "signature": "let setUTCMinutesSMs: (\n t,\n ~minutes: int,\n ~seconds: int,\n ~milliseconds: int,\n) => unit" }, { "id": "Core.Date.setUTCSeconds", @@ -7999,14 +8997,16 @@ "core/console": { "id": "Core.Console", "name": "Console", - "docstrings": [], + "docstrings": [ + "Functions for interacting with JavaScript console.\n\nSee: [`console`](https://developer.mozilla.org/en-US/docs/Web/API/Console)." + ], "items": [ { "id": "Core.Console.assert_", "kind": "value", "name": "assert_", "docstrings": [ - "`assert_(assertion, value)` print a message to console if `assertion` evaluates `false`. Does nothing if it's `true`.\n\nSee [`console.assert`](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)\non MDN.\n\n## Examples\n\n```rescript\nConsole.assert_(false, \"Hello World!\")\nConsole.assert_(n == 42, \"The answer\")\n```" + "`assert_(assertion, value)` print a message to console if `assertion` evaluates `false`. Does nothing if it's `true`.\n\nSee [`console.assert`](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)\non MDN.\n\n## Examples\n\n```rescript\nConsole.assert_(false, \"Hello World!\")\nConsole.assert_(42 == 42, \"The answer\")\n```" ], "signature": "let assert_: (bool, 'a) => unit" }, @@ -8015,7 +9015,7 @@ "kind": "value", "name": "assert2", "docstrings": [ - "`assert2(v1, v2)`. Like `assert_`, but with two arguments.\n\n## Examples\n\n```rescript\nConsole.assert2(false, \"Hello\", \"World\")\nConsole.assert2(n == 42, [1, 2, 3], '4')\n```" + "`assert2(v1, v2)`. Like `assert_`, but with two arguments.\n\n## Examples\n\n```rescript\nConsole.assert2(false, \"Hello\", \"World\")\nConsole.assert2(42 == 42, [1, 2, 3], '4')\n```" ], "signature": "let assert2: (bool, 'a, 'b) => unit" }, @@ -8024,7 +9024,7 @@ "kind": "value", "name": "assert3", "docstrings": [ - "`assert3(v1, v2, v3)`. Like `assert_`, but with three arguments.\n\n## Examples\n\n```rescript\nConsole.assert3(false, \"Hello\", \"World\", \"ReScript\")\nConsole.assert3(n == 42, \"One\", 2, #3)\n```" + "`assert3(v1, v2, v3)`. Like `assert_`, but with three arguments.\n\n## Examples\n\n```rescript\nConsole.assert3(false, \"Hello\", \"World\", \"ReScript\")\nConsole.assert3(42 == 42, \"One\", 2, #3)\n```" ], "signature": "let assert3: (bool, 'a, 'b, 'c) => unit" }, @@ -8033,7 +9033,7 @@ "kind": "value", "name": "assert4", "docstrings": [ - "`assert4(v1, v2, v3, v4)`. Like `assert_`, but with four arguments.\n\n## Examples\n\n```rescript\nConsole.assert4(false, \"Hello\", \"World\", \"ReScript\", \"!!!\")\nConsole.assert4(m == 42, [1, 2], (3, 4), [#5, #6], #\"polyvar\")\n```" + "`assert4(v1, v2, v3, v4)`. Like `assert_`, but with four arguments.\n\n## Examples\n\n```rescript\nlet value = 42\nConsole.assert4(false, \"Hello\", \"World\", \"ReScript\", \"!!!\")\nConsole.assert4(value == 42, [1, 2], (3, 4), [#5, #6], #\"polyvar\")\n```" ], "signature": "let assert4: (bool, 'a, 'b, 'c, 'd) => unit" }, @@ -8042,7 +9042,7 @@ "kind": "value", "name": "assert5", "docstrings": [ - "`assert5(v1, v2, v3, v4, v5)`. Like `assert_`, but with five arguments.\n\n## Examples\n\n```rescript\nConsole.assert5(false, \"Hello\", \"World\", \"JS\", '!', '!')\nConsole.assert5(n == 42, [1, 2], (3, 4), [#5, #6], #\"polyvar\", {\"name\": \"ReScript\"})\n```" + "`assert5(v1, v2, v3, v4, v5)`. Like `assert_`, but with five arguments.\n\n## Examples\n\n```rescript\nlet value = 42\nConsole.assert5(false, \"Hello\", \"World\", \"JS\", '!', '!')\nConsole.assert5(value == 42, [1, 2], (3, 4), [#5, #6], #\"polyvar\", {\"name\": \"ReScript\"})\n```" ], "signature": "let assert5: (bool, 'a, 'b, 'c, 'd, 'e) => unit" }, @@ -8051,7 +9051,7 @@ "kind": "value", "name": "assert6", "docstrings": [ - "`assert6(v1, v2)`. Like `assert_`, but with six arguments.\n\n## Examples\n\n```rescript\nConsole.assert6(false, \"Hello\", \"World\", \"JS\", '!', '!', '?')\nConsole.assert6(n == 42, [1, 2], (3, 4), [#5, #6], #\"polyvar\", {\"name\": \"ReScript\"}, 42)\n```" + "`assert6(v1, v2)`. Like `assert_`, but with six arguments.\n\n## Examples\n\n```rescript\nlet value = 42\nConsole.assert6(false, \"Hello\", \"World\", \"JS\", '!', '!', '?')\nConsole.assert6(value == 42, [1, 2], (3, 4), [#5, #6], #\"polyvar\", {\"name\": \"ReScript\"}, 42)\n```" ], "signature": "let assert6: (bool, 'a, 'b, 'c, 'd, 'e, 'f) => unit" }, @@ -8060,7 +9060,7 @@ "kind": "value", "name": "assertMany", "docstrings": [ - "`assertMany(assertion, arr)`. Like `assert_`, but variadic.\n\n## Examples\n\n```rescript\nConsole.assertMany(false, [\"Hello\", \"World\"])\nConsole.assertMany(n == 42, [1, 2, 3])\n```" + "`assertMany(assertion, arr)`. Like `assert_`, but variadic.\n\n## Examples\n\n```rescript\nlet value = 42\nConsole.assertMany(false, [\"Hello\", \"World\"])\nConsole.assertMany(value == 42, [1, 2, 3])\n```" ], "signature": "let assertMany: (bool, array<'a>) => unit" }, @@ -8159,7 +9159,7 @@ "kind": "value", "name": "dir", "docstrings": [ - "`dir(object)` displays an interactive view of the object in the console.\n\nSee [`console.dir`](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)\non MDN.\n\n## Examples\n\n```rescript\nConsole.dir({\"language\": \"rescript\", \"version\": 10.1.2})\n```" + "`dir(object)` displays an interactive view of the object in the console.\n\nSee [`console.dir`](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)\non MDN.\n\n## Examples\n\n```rescript\nConsole.dir({\"language\": \"rescript\", \"version\": \"10.1.2\"})\n```" ], "signature": "let dir: 'a => unit" }, @@ -8213,7 +9213,7 @@ "kind": "value", "name": "error5", "docstrings": [ - "`error5(v1, v2, v3, v4, v5)`. Like `error`, but with five arguments.\n\n## Examples\n\n```rescript\nConsole.error5('e', 'r, 'r', 'o', 'r')\nConsole.error5(1, #second, #third, (\"fourth\"), 'c')\n```" + "`error5(v1, v2, v3, v4, v5)`. Like `error`, but with five arguments.\n\n## Examples\n\n```rescript\nConsole.error5('e', 'r', 'r', 'o', 'r')\nConsole.error5(1, #second, #third, (\"fourth\"), 'c')\n```" ], "signature": "let error5: ('a, 'b, 'c, 'd, 'e) => unit" }, @@ -8393,7 +9393,7 @@ "kind": "value", "name": "table", "docstrings": [ - "`table(object)` displays an tabular view of the object in the console.\n\nSee [`console.table`](https://developer.mozilla.org/en-US/docs/Web/API/console/table)\non MDN.\n\n## Examples\n\n```rescript\nConsole.table({\"language\": \"rescript\", \"version\": 10.1.2})\n```" + "`table(object)` displays an tabular view of the object in the console.\n\nSee [`console.table`](https://developer.mozilla.org/en-US/docs/Web/API/console/table)\non MDN.\n\n## Examples\n\n```rescript\nConsole.table({\"language\": \"rescript\", \"version\": \"10.1.2\"})\n```" ], "signature": "let table: 'a => unit" }, @@ -8503,6 +9503,15 @@ "name": "Array", "docstrings": [], "items": [ + { + "id": "Core.Array.fromIterator", + "kind": "value", + "name": "fromIterator", + "docstrings": [ + "`fromIterator(iterator)`\n\n Creates an array from the provided `iterator`\n\n ```res example\n let map = Map.fromArray([(\"foo\", 1), (\"bar\", 2)])\n\n Array.fromIterator(map->Map.values) // [1, 2]\n ```" + ], + "signature": "let fromIterator: Core__Iterator.t<'a> => array<'a>" + }, { "id": "Core.Array.fromArrayLike", "kind": "value", @@ -8531,7 +9540,7 @@ "kind": "value", "name": "fromInitializer", "docstrings": [ - "`fromInitializer(~length, f)`\n\n Creates an array of length `length` initialized with the value returned from `f ` for each index.\n\n ```res example\n Array.make(~length=3, i => i + 3) == [3, 4, 5]\n ```" + "`fromInitializer(~length, f)`\n\n Creates an array of length `length` initialized with the value returned from `f ` for each index.\n\n ```res example\n Array.fromInitializer(~length=3, i => i + 3) == [3, 4, 5]\n ```" ], "signature": "let fromInitializer: (~length: int, int => 'a) => array<'a>" }, @@ -8547,7 +9556,7 @@ "kind": "value", "name": "compare", "docstrings": [], - "signature": "let compare: (\\n array<'a>,\\n array<'a>,\\n ('a, 'a) => Core__Ordering.t,\\n) => Core__Ordering.t" + "signature": "let compare: (\n array<'a>,\n array<'a>,\n ('a, 'a) => Core__Ordering.t,\n) => Core__Ordering.t" }, { "id": "Core.Array.isArray", @@ -8584,7 +9593,7 @@ "kind": "value", "name": "copyWithin", "docstrings": [], - "signature": "let copyWithin: (\\n array<'a>,\\n ~target: int,\\n ~start: int,\\n ~end: int,\\n) => array<'a>" + "signature": "let copyWithin: (\n array<'a>,\n ~target: int,\n ~start: int,\n ~end: int,\n) => array<'a>" }, { "id": "Core.Array.fillAll", @@ -8681,14 +9690,14 @@ "kind": "value", "name": "splice", "docstrings": [], - "signature": "let splice: (\\n array<'a>,\\n ~start: int,\\n ~remove: int,\\n ~insert: array<'a>,\\n) => unit" + "signature": "let splice: (\n array<'a>,\n ~start: int,\n ~remove: int,\n ~insert: array<'a>,\n) => unit" }, { "id": "Core.Array.toSpliced", "kind": "value", "name": "toSpliced", "docstrings": [], - "signature": "let toSpliced: (\\n array<'a>,\\n ~start: int,\\n ~remove: int,\\n ~insert: array<'a>,\\n) => array<'a>" + "signature": "let toSpliced: (\n array<'a>,\n ~start: int,\n ~remove: int,\n ~insert: array<'a>,\n) => array<'a>" }, { "id": "Core.Array.with", @@ -8926,7 +9935,7 @@ "kind": "value", "name": "findIndexWithIndex", "docstrings": [ - "`findIndexWithIndex(array, checker)` returns the index of the first element of `array` where the provided `checker` function returns true.\n\nReturns `-1` if the item does not exist. Consider using `Array.findIndexOpt` if you want an option instead (where `-1` would be `None`).\n\nSee [`Array.findIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex) on MDN.\n\n## Examples\n```rescript\ntype languages = ReScript | TypeScript | JavaScript\n\nlet array = [ReScript, JavaScript]\n\nConsole.log(array->Array.findIndexWithIndex((item, index) => index === 0 && item == ReScript)) // 0\nConsole.log(array->Array.findIndex((item, index) => index === 0 && item == TypeScript)) // -1\n```" + "`findIndexWithIndex(array, checker)` returns the index of the first element of `array` where the provided `checker` function returns true.\n\nReturns `-1` if the item does not exist. Consider using `Array.findIndexOpt` if you want an option instead (where `-1` would be `None`).\n\nSee [`Array.findIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex) on MDN.\n\n## Examples\n```rescript\ntype languages = ReScript | TypeScript | JavaScript\n\nlet array = [ReScript, JavaScript]\n\nlet isReScriptFirst = array->Array.findIndexWithIndex((item, index) => index === 0 && item == ReScript)\nlet isTypeScriptFirst = array->Array.findIndexWithIndex((item, index) => index === 0 && item == TypeScript)\n\nConsole.log(isReScriptFirst) // 0\nConsole.log(isTypeScriptFirst) // -1\n```" ], "signature": "let findIndexWithIndex: (array<'a>, ('a, int) => bool) => int" }, @@ -8971,7 +9980,7 @@ "kind": "value", "name": "reduce", "docstrings": [ - "`reduce(xs, f, init)`\n\n Applies `f` to each element of `xs` from beginning to end. Function `f` has two parameters: the item from the list and an “accumulator”; which starts with a value of `init`. `reduce` returns the final value of the accumulator.\n\n ```res example\n Array.reduce([2, 3, 4], (a, b) => a + b, 1) == 10\n\n Array.reduce([\"a\", \"b\", \"c\", \"d\"], (a, b) => a ++ b, \"\") == \"abcd\"\n ```" + "`reduce(xs, init, fn)`\n\n Applies `fn` to each element of `xs` from beginning to end. Function `fn` has two parameters: the item from the list and an “accumulator”; which starts with a value of `init`. `reduce` returns the final value of the accumulator.\n\n ```res example\n Array.reduce([2, 3, 4], 1, (a, b) => a + b) == 10\n\n Array.reduce([\"a\", \"b\", \"c\", \"d\"], \"\", (a, b) => a ++ b) == \"abcd\"\n ```" ], "signature": "let reduce: (array<'a>, 'b, ('b, 'a) => 'b) => 'b" }, @@ -8980,7 +9989,7 @@ "kind": "value", "name": "reduceWithIndex", "docstrings": [ - "`reduceWithIndex(xs, f, init)`\n\n Applies `f` to each element of `xs` from beginning to end. Function `f` has three parameters: the item from the array and an “accumulator”, which starts with a value of `init` and the index of each element. `reduceWithIndex` returns the final value of the accumulator.\n\n ```res example\n Array.reduceWithIndex([1, 2, 3, 4], (acc, x, i) => acc + x + i, 0) == 16\n ```" + "`reduceWithIndex(x, init, fn)`\n\n Applies `fn` to each element of `xs` from beginning to end. Function `fn` has three parameters: the item from the array and an “accumulator”, which starts with a value of `init` and the index of each element. `reduceWithIndex` returns the final value of the accumulator.\n\n ```res example\n Array.reduceWithIndex([1, 2, 3, 4], 0, (acc, x, i) => acc + x + i) == 16\n ```" ], "signature": "let reduceWithIndex: (array<'a>, 'b, ('b, 'a, int) => 'b) => 'b" }, @@ -8989,7 +9998,7 @@ "kind": "value", "name": "reduceRight", "docstrings": [ - "`reduceRight(xs, f, init)`\n\n Works like `Array.reduce`; except that function `f` is applied to each item of `xs` from the last back to the first.\n\n ```res example\n Array.reduceRight([\"a\", \"b\", \"c\", \"d\"], (a, b) => a ++ b, \"\") == \"dcba\"\n ```" + "`reduceRight(xs, init, fn)`\n\n Works like `Array.reduce`; except that function `fn` is applied to each item of `xs` from the last back to the first.\n\n ```res example\n Array.reduceRight([\"a\", \"b\", \"c\", \"d\"], \"\", (a, b) => a ++ b) == \"dcba\"\n ```" ], "signature": "let reduceRight: (array<'a>, 'b, ('b, 'a) => 'b) => 'b" }, @@ -8998,7 +10007,7 @@ "kind": "value", "name": "reduceRightWithIndex", "docstrings": [ - "`reduceRightWithIndex(xs, f, init)`\n\n Like `reduceRight`, but with an additional index argument on the callback function.\n\n ```res example\n Array.reduceRightWithIndex([1, 2, 3, 4], (acc, x, i) => acc + x + i, 0) == 16\n ```" + "`reduceRightWithIndex(xs, init, fn)`\n\n Like `reduceRight`, but with an additional index argument on the callback function.\n\n ```res example\n Array.reduceRightWithIndex([1, 2, 3, 4], 0, (acc, x, i) => acc + x + i) == 16\n ```" ], "signature": "let reduceRightWithIndex: (array<'a>, 'b, ('b, 'a, int) => 'b) => 'b" }, @@ -9025,7 +10034,7 @@ "kind": "value", "name": "get", "docstrings": [ - "`get(array, index)` returns the element at `index` of `array`.\n\nReturns `None` if the index does not exist in the array. Equivalent to doing `array[index]` in JavaScript.\n\n## Examples\n```rescript\nlet array = [\"Hello\", \"Hi\", \"Good bye\"]\n\narray->Array.get(0) == Some(\"Hello\") // true\n```" + "`get(array, index)` returns the element at `index` of `array`.\n\nReturns `None` if the index does not exist in the array. Equivalent to doing `array[index]` in JavaScript.\n\n## Examples\n```rescript\nlet array = [\"Hello\", \"Hi\", \"Good bye\"]\n\narray->Array.get(0) == Some(\"Hello\") // true\narray->Array.get(3) == None // true\n```" ], "signature": "let get: (array<'a>, int) => option<'a>" }, @@ -9064,7 +10073,7 @@ "kind": "value", "name": "getUnsafe", "docstrings": [ - "`getUnsafe(array, index)` returns the element at `index` of `array`.\n\nThis is _unsafe_, meaning it will fail with an exception if `index` does not exist in `array`.\n\n## Exceptions\n\n- `Not_found`: If the provided `index` does not exist in `array`.\n\n## Examples\n```rescript\nlet array = [\"Hello\", \"Hi\", \"Good bye\"]\n\nConsole.log(array->Array.getUnsafe(0)) // \"Hello\"\nConsole.log(array->Array.getUnsafe(3)) // Fails and raises exception\n```" + "`getUnsafe(array, index)` returns the element at `index` of `array`.\n\nThis is _unsafe_, meaning it will return `undefined` value if `index` does not exist in `array`.\n\nUse `Array.getUnsafe` only when you are sure the `index` exists (i.e. when using for-loop).\n\n## Examples\n```rescript\nlet array = [1, 2, 3]\nfor index in 0 to array->Array.length - 1 {\n let value = array->Array.getUnsafe(index)\n Console.log(value)\n}\n```" ], "signature": "let getUnsafe: (array<'a>, int) => 'a" }, @@ -9100,7 +10109,7 @@ "kind": "value", "name": "filterMap", "docstrings": [ - "`get(array, index)` returns the element at `index` of `array`.\n\nReturns `None` if the index does not exist in the array. Equivalent to doing `array[index]` in JavaScript.\n\n## Examples\n```rescript\nlet array = [\"Hello\", \"Hi\", \"Good bye\"]\n\nConsole.log(\n array->Array.filterMap(item =>\n switch item {\n | \"Hello\" => Some(item->String.length)\n | _ => None\n }\n ),\n)\n// [5]\n```" + "`filterMap(array, fn)`\n\nCalls `fn` for each element and returns a new array containing results of the `fn` calls which are not `None`.\n\n## Examples\n```rescript\nlet array = [\"Hello\", \"Hi\", \"Good bye\"]\n\nConsole.log(\n array->Array.filterMap(item =>\n switch item {\n | \"Hello\" => Some(item->String.length)\n | _ => None\n }\n ),\n) // [5]\n```" ], "signature": "let filterMap: (array<'a>, 'a => option<'b>) => array<'b>" }, @@ -9145,7 +10154,7 @@ "kind": "value", "name": "findMap", "docstrings": [ - "`findMap(arr, f)`\n\n Calls `f` for each element and returns the first value from `f` that is `Some(_)`.\n Otherwise returns `None`\n\n ```res example\n Array.findMap([1, 2, 3], n => mod(n, 2) ? Some(n - 2) : None) == 0\n ```" + "`findMap(arr, fn)`\n\n Calls `fn` for each element and returns the first value from `fn` that is `Some(_)`.\n Otherwise returns `None`\n\n ```res example\n Array.findMap([1, 2, 3], n => mod(n, 2) == 0 ? Some(n - 2) : None) == Some(0) // true\n ```" ], "signature": "let findMap: (array<'a>, 'a => option<'b>) => option<'b>" }, @@ -9157,6 +10166,15 @@ "`at(array, index)`\n\n Get an element by its index. Negative indices count backwards from the last item.\n\n ## Examples\n ```rescript\n [\"a\", \"b\", \"c\"]->Array.at(0) // Some(\"a\")\n [\"a\", \"b\", \"c\"]->Array.at(2) // Some(\"c\")\n [\"a\", \"b\", \"c\"]->Array.at(3) // None\n [\"a\", \"b\", \"c\"]->Array.at(-1) // Some(\"c\")\n [\"a\", \"b\", \"c\"]->Array.at(-3) // Some(\"a\")\n [\"a\", \"b\", \"c\"]->Array.at(-4) // None\n ```" ], "signature": "let at: (array<'a>, int) => option<'a>" + }, + { + "id": "Core.Array.last", + "kind": "value", + "name": "last", + "docstrings": [ + "`last(array)` returns the last element of `array`.\n\nReturns `None` if the array is empty.\n\n## Examples\n```rescript\nlet array = [\"Hello\", \"Hi\", \"Good bye\"]\n\narray->Array.last == Some(\"Good bye\") // true\n[]->Array.last == None // true\n```" + ], + "signature": "let last: array<'a> => option<'a>" } ] } diff --git a/data/api/latest/dom.json b/data/api/latest/dom.json index 525f455b9..3d1372099 100644 --- a/data/api/latest/dom.json +++ b/data/api/latest/dom.json @@ -429,7 +429,7 @@ "kind": "type", "name": "htmlAnchorElement", "docstrings": [], - "signature": "type htmlAnchorElement = htmlElement_like<\\n _htmlAnchorElement,\\n>" + "signature": "type htmlAnchorElement = htmlElement_like<\n _htmlAnchorElement,\n>" }, { "id": "Dom._htmlAreaElement", @@ -513,7 +513,7 @@ "kind": "type", "name": "htmlButtonElement", "docstrings": [], - "signature": "type htmlButtonElement = htmlElement_like<\\n _htmlButtonElement,\\n>" + "signature": "type htmlButtonElement = htmlElement_like<\n _htmlButtonElement,\n>" }, { "id": "Dom._htmlCanvasElement", @@ -527,7 +527,7 @@ "kind": "type", "name": "htmlCanvasElement", "docstrings": [], - "signature": "type htmlCanvasElement = htmlElement_like<\\n _htmlCanvasElement,\\n>" + "signature": "type htmlCanvasElement = htmlElement_like<\n _htmlCanvasElement,\n>" }, { "id": "Dom._htmlDataElement", @@ -555,7 +555,7 @@ "kind": "type", "name": "htmlDataListElement", "docstrings": [], - "signature": "type htmlDataListElement = htmlElement_like<\\n _htmlDataListElement,\\n>" + "signature": "type htmlDataListElement = htmlElement_like<\n _htmlDataListElement,\n>" }, { "id": "Dom._htmlDialogElement", @@ -569,7 +569,7 @@ "kind": "type", "name": "htmlDialogElement", "docstrings": [], - "signature": "type htmlDialogElement = htmlElement_like<\\n _htmlDialogElement,\\n>" + "signature": "type htmlDialogElement = htmlElement_like<\n _htmlDialogElement,\n>" }, { "id": "Dom._htmlDivElement", @@ -625,7 +625,7 @@ "kind": "type", "name": "htmlFieldSetElement", "docstrings": [], - "signature": "type htmlFieldSetElement = htmlElement_like<\\n _htmlFieldSetElement,\\n>" + "signature": "type htmlFieldSetElement = htmlElement_like<\n _htmlFieldSetElement,\n>" }, { "id": "Dom._htmlFormElement", @@ -667,7 +667,7 @@ "kind": "type", "name": "htmlHeadingElement", "docstrings": [], - "signature": "type htmlHeadingElement = htmlElement_like<\\n _htmlHeadingElement,\\n>" + "signature": "type htmlHeadingElement = htmlElement_like<\n _htmlHeadingElement,\n>" }, { "id": "Dom._htmlHrElement", @@ -709,7 +709,7 @@ "kind": "type", "name": "htmlIframeElement", "docstrings": [], - "signature": "type htmlIframeElement = htmlElement_like<\\n _htmlIframeElement,\\n>" + "signature": "type htmlIframeElement = htmlElement_like<\n _htmlIframeElement,\n>" }, { "id": "Dom._htmlImageElement", @@ -765,7 +765,7 @@ "kind": "type", "name": "htmlLegendElement", "docstrings": [], - "signature": "type htmlLegendElement = htmlElement_like<\\n _htmlLegendElement,\\n>" + "signature": "type htmlLegendElement = htmlElement_like<\n _htmlLegendElement,\n>" }, { "id": "Dom._htmlLiElement", @@ -905,7 +905,7 @@ "kind": "type", "name": "htmlObjectElement", "docstrings": [], - "signature": "type htmlObjectElement = htmlElement_like<\\n _htmlObjectElement,\\n>" + "signature": "type htmlObjectElement = htmlElement_like<\n _htmlObjectElement,\n>" }, { "id": "Dom._htmlOptGroupElement", @@ -919,7 +919,7 @@ "kind": "type", "name": "htmlOptGroupElement", "docstrings": [], - "signature": "type htmlOptGroupElement = htmlElement_like<\\n _htmlOptGroupElement,\\n>" + "signature": "type htmlOptGroupElement = htmlElement_like<\n _htmlOptGroupElement,\n>" }, { "id": "Dom._htmlOptionElement", @@ -933,7 +933,7 @@ "kind": "type", "name": "htmlOptionElement", "docstrings": [], - "signature": "type htmlOptionElement = htmlElement_like<\\n _htmlOptionElement,\\n>" + "signature": "type htmlOptionElement = htmlElement_like<\n _htmlOptionElement,\n>" }, { "id": "Dom._htmlOutputElement", @@ -947,7 +947,7 @@ "kind": "type", "name": "htmlOutputElement", "docstrings": [], - "signature": "type htmlOutputElement = htmlElement_like<\\n _htmlOutputElement,\\n>" + "signature": "type htmlOutputElement = htmlElement_like<\n _htmlOutputElement,\n>" }, { "id": "Dom._htmlParagraphElement", @@ -961,7 +961,7 @@ "kind": "type", "name": "htmlParagraphElement", "docstrings": [], - "signature": "type htmlParagraphElement = htmlElement_like<\\n _htmlParagraphElement,\\n>" + "signature": "type htmlParagraphElement = htmlElement_like<\n _htmlParagraphElement,\n>" }, { "id": "Dom._htmlParamElement", @@ -1003,7 +1003,7 @@ "kind": "type", "name": "htmlProgressElement", "docstrings": [], - "signature": "type htmlProgressElement = htmlElement_like<\\n _htmlProgressElement,\\n>" + "signature": "type htmlProgressElement = htmlElement_like<\n _htmlProgressElement,\n>" }, { "id": "Dom._htmlQuoteElement", @@ -1031,7 +1031,7 @@ "kind": "type", "name": "htmlScriptElement", "docstrings": [], - "signature": "type htmlScriptElement = htmlElement_like<\\n _htmlScriptElement,\\n>" + "signature": "type htmlScriptElement = htmlElement_like<\n _htmlScriptElement,\n>" }, { "id": "Dom._htmlSelectElement", @@ -1045,7 +1045,7 @@ "kind": "type", "name": "htmlSelectElement", "docstrings": [], - "signature": "type htmlSelectElement = htmlElement_like<\\n _htmlSelectElement,\\n>" + "signature": "type htmlSelectElement = htmlElement_like<\n _htmlSelectElement,\n>" }, { "id": "Dom._htmlSlotElement", @@ -1073,7 +1073,7 @@ "kind": "type", "name": "htmlSourceElement", "docstrings": [], - "signature": "type htmlSourceElement = htmlElement_like<\\n _htmlSourceElement,\\n>" + "signature": "type htmlSourceElement = htmlElement_like<\n _htmlSourceElement,\n>" }, { "id": "Dom._htmlSpanElement", @@ -1115,7 +1115,7 @@ "kind": "type", "name": "htmlTableCaptionElement", "docstrings": [], - "signature": "type htmlTableCaptionElement = htmlElement_like<\\n _htmlTableCaptionElement,\\n>" + "signature": "type htmlTableCaptionElement = htmlElement_like<\n _htmlTableCaptionElement,\n>" }, { "id": "Dom._htmlTableCellElement", @@ -1129,7 +1129,7 @@ "kind": "type", "name": "htmlTableCellElement", "docstrings": [], - "signature": "type htmlTableCellElement = htmlElement_like<\\n _htmlTableCellElement,\\n>" + "signature": "type htmlTableCellElement = htmlElement_like<\n _htmlTableCellElement,\n>" }, { "id": "Dom._htmlTableColElement", @@ -1143,7 +1143,7 @@ "kind": "type", "name": "htmlTableColElement", "docstrings": [], - "signature": "type htmlTableColElement = htmlElement_like<\\n _htmlTableColElement,\\n>" + "signature": "type htmlTableColElement = htmlElement_like<\n _htmlTableColElement,\n>" }, { "id": "Dom._htmlTableDataCellElement", @@ -1157,7 +1157,7 @@ "kind": "type", "name": "htmlTableDataCellElement", "docstrings": [], - "signature": "type htmlTableDataCellElement = htmlElement_like<\\n _htmlTableDataCellElement,\\n>" + "signature": "type htmlTableDataCellElement = htmlElement_like<\n _htmlTableDataCellElement,\n>" }, { "id": "Dom._htmlTableElement", @@ -1185,7 +1185,7 @@ "kind": "type", "name": "htmlTableHeaderCellElement", "docstrings": [], - "signature": "type htmlTableHeaderCellElement = htmlElement_like<\\n _htmlTableHeaderCellElement,\\n>" + "signature": "type htmlTableHeaderCellElement = htmlElement_like<\n _htmlTableHeaderCellElement,\n>" }, { "id": "Dom._htmlTableRowElement", @@ -1199,7 +1199,7 @@ "kind": "type", "name": "htmlTableRowElement", "docstrings": [], - "signature": "type htmlTableRowElement = htmlElement_like<\\n _htmlTableRowElement,\\n>" + "signature": "type htmlTableRowElement = htmlElement_like<\n _htmlTableRowElement,\n>" }, { "id": "Dom._htmlTableSectionElement", @@ -1213,7 +1213,7 @@ "kind": "type", "name": "htmlTableSectionElement", "docstrings": [], - "signature": "type htmlTableSectionElement = htmlElement_like<\\n _htmlTableSectionElement,\\n>" + "signature": "type htmlTableSectionElement = htmlElement_like<\n _htmlTableSectionElement,\n>" }, { "id": "Dom._htmlTextAreaElement", @@ -1227,7 +1227,7 @@ "kind": "type", "name": "htmlTextAreaElement", "docstrings": [], - "signature": "type htmlTextAreaElement = htmlElement_like<\\n _htmlTextAreaElement,\\n>" + "signature": "type htmlTextAreaElement = htmlElement_like<\n _htmlTextAreaElement,\n>" }, { "id": "Dom._htmlTimeElement", @@ -1297,7 +1297,7 @@ "kind": "type", "name": "htmlUnknownElement", "docstrings": [], - "signature": "type htmlUnknownElement = htmlElement_like<\\n _htmlUnknownElement,\\n>" + "signature": "type htmlUnknownElement = htmlElement_like<\n _htmlUnknownElement,\n>" }, { "id": "Dom._htmlVideoElement", @@ -1514,7 +1514,7 @@ "kind": "type", "name": "idbVersionChangeEvent", "docstrings": [], - "signature": "type idbVersionChangeEvent = event_like<\\n _idbVersionChangeEvent,\\n>" + "signature": "type idbVersionChangeEvent = event_like<\n _idbVersionChangeEvent,\n>" }, { "id": "Dom._inputEvent", diff --git a/data/api/latest/js.json b/data/api/latest/js.json index d54e570ae..4506f6f7e 100644 --- a/data/api/latest/js.json +++ b/data/api/latest/js.json @@ -13,7 +13,7 @@ "docstrings": [ "JS object type" ], - "signature": "type t<'a> = 'a\\n constraint 'a = {..}" + "signature": "type t<'a> = 'a\n constraint 'a = {..}" }, { "id": "Js.null", @@ -228,7 +228,9 @@ "js/typedarray2/dataview": { "id": "Js.TypedArray2.DataView", "name": "DataView", - "docstrings": [], + "docstrings": [ + "The DataView view provides a low-level interface for reading and writing\nmultiple number types in an ArrayBuffer irrespective of the platform's endianness.\n\n**see** [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)" + ], "items": [ { "id": "Js.TypedArray2.DataView.t", @@ -629,7 +631,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: (t, (. elt, elt) => int) => t" + "signature": "let sortInPlaceWith: (t, (elt, elt) => int) => t" }, { "id": "Js.TypedArray2.Float64Array.includes", @@ -738,126 +740,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: (t, (. elt) => bool) => bool" + "signature": "let every: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Float64Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: (t, (. elt, int) => bool) => bool" + "signature": "let everyi: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Float64Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: (t, (. elt) => bool) => t" + "signature": "let filter: (t, elt => bool) => t" }, { "id": "Js.TypedArray2.Float64Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: (t, (. elt, int) => bool) => t" + "signature": "let filteri: (t, (elt, int) => bool) => t" }, { "id": "Js.TypedArray2.Float64Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: (t, (. elt) => bool) => Js.undefined" + "signature": "let find: (t, elt => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Float64Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: (t, (. elt, int) => bool) => Js.undefined" + "signature": "let findi: (t, (elt, int) => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Float64Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: (t, (. elt) => bool) => int" + "signature": "let findIndex: (t, elt => bool) => int" }, { "id": "Js.TypedArray2.Float64Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: (t, (. elt, int) => bool) => int" + "signature": "let findIndexi: (t, (elt, int) => bool) => int" }, { "id": "Js.TypedArray2.Float64Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: (t, (. elt) => unit) => unit" + "signature": "let forEach: (t, elt => unit) => unit" }, { "id": "Js.TypedArray2.Float64Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: (t, (. elt, int) => unit) => unit" + "signature": "let forEachi: (t, (elt, int) => unit) => unit" }, { "id": "Js.TypedArray2.Float64Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: (t, (. elt) => 'b) => typed_array<'b>" + "signature": "let map: (t, elt => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Float64Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: (t, (. elt, int) => 'b) => typed_array<'b>" + "signature": "let mapi: (t, (elt, int) => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Float64Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduce: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Float64Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reducei: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Float64Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduceRight: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Float64Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reduceRighti: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Float64Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: (t, (. elt) => bool) => bool" + "signature": "let some: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Float64Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: (t, (. elt, int) => bool) => bool" + "signature": "let somei: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Float64Array._BYTES_PER_ELEMENT", @@ -1061,7 +1063,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: (t, (. elt, elt) => int) => t" + "signature": "let sortInPlaceWith: (t, (elt, elt) => int) => t" }, { "id": "Js.TypedArray2.Float32Array.includes", @@ -1170,126 +1172,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: (t, (. elt) => bool) => bool" + "signature": "let every: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Float32Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: (t, (. elt, int) => bool) => bool" + "signature": "let everyi: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Float32Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: (t, (. elt) => bool) => t" + "signature": "let filter: (t, elt => bool) => t" }, { "id": "Js.TypedArray2.Float32Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: (t, (. elt, int) => bool) => t" + "signature": "let filteri: (t, (elt, int) => bool) => t" }, { "id": "Js.TypedArray2.Float32Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: (t, (. elt) => bool) => Js.undefined" + "signature": "let find: (t, elt => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Float32Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: (t, (. elt, int) => bool) => Js.undefined" + "signature": "let findi: (t, (elt, int) => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Float32Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: (t, (. elt) => bool) => int" + "signature": "let findIndex: (t, elt => bool) => int" }, { "id": "Js.TypedArray2.Float32Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: (t, (. elt, int) => bool) => int" + "signature": "let findIndexi: (t, (elt, int) => bool) => int" }, { "id": "Js.TypedArray2.Float32Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: (t, (. elt) => unit) => unit" + "signature": "let forEach: (t, elt => unit) => unit" }, { "id": "Js.TypedArray2.Float32Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: (t, (. elt, int) => unit) => unit" + "signature": "let forEachi: (t, (elt, int) => unit) => unit" }, { "id": "Js.TypedArray2.Float32Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: (t, (. elt) => 'b) => typed_array<'b>" + "signature": "let map: (t, elt => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Float32Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: (t, (. elt, int) => 'b) => typed_array<'b>" + "signature": "let mapi: (t, (elt, int) => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Float32Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduce: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Float32Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reducei: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Float32Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduceRight: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Float32Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reduceRighti: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Float32Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: (t, (. elt) => bool) => bool" + "signature": "let some: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Float32Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: (t, (. elt, int) => bool) => bool" + "signature": "let somei: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Float32Array._BYTES_PER_ELEMENT", @@ -1493,7 +1495,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: (t, (. elt, elt) => int) => t" + "signature": "let sortInPlaceWith: (t, (elt, elt) => int) => t" }, { "id": "Js.TypedArray2.Uint32Array.includes", @@ -1602,126 +1604,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: (t, (. elt) => bool) => bool" + "signature": "let every: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Uint32Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: (t, (. elt, int) => bool) => bool" + "signature": "let everyi: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Uint32Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: (t, (. elt) => bool) => t" + "signature": "let filter: (t, elt => bool) => t" }, { "id": "Js.TypedArray2.Uint32Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: (t, (. elt, int) => bool) => t" + "signature": "let filteri: (t, (elt, int) => bool) => t" }, { "id": "Js.TypedArray2.Uint32Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: (t, (. elt) => bool) => Js.undefined" + "signature": "let find: (t, elt => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Uint32Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: (t, (. elt, int) => bool) => Js.undefined" + "signature": "let findi: (t, (elt, int) => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Uint32Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: (t, (. elt) => bool) => int" + "signature": "let findIndex: (t, elt => bool) => int" }, { "id": "Js.TypedArray2.Uint32Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: (t, (. elt, int) => bool) => int" + "signature": "let findIndexi: (t, (elt, int) => bool) => int" }, { "id": "Js.TypedArray2.Uint32Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: (t, (. elt) => unit) => unit" + "signature": "let forEach: (t, elt => unit) => unit" }, { "id": "Js.TypedArray2.Uint32Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: (t, (. elt, int) => unit) => unit" + "signature": "let forEachi: (t, (elt, int) => unit) => unit" }, { "id": "Js.TypedArray2.Uint32Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: (t, (. elt) => 'b) => typed_array<'b>" + "signature": "let map: (t, elt => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Uint32Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: (t, (. elt, int) => 'b) => typed_array<'b>" + "signature": "let mapi: (t, (elt, int) => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Uint32Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduce: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint32Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reducei: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint32Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduceRight: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint32Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reduceRighti: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint32Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: (t, (. elt) => bool) => bool" + "signature": "let some: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Uint32Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: (t, (. elt, int) => bool) => bool" + "signature": "let somei: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Uint32Array._BYTES_PER_ELEMENT", @@ -1925,7 +1927,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: (t, (. elt, elt) => int) => t" + "signature": "let sortInPlaceWith: (t, (elt, elt) => int) => t" }, { "id": "Js.TypedArray2.Int32Array.includes", @@ -2034,126 +2036,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: (t, (. elt) => bool) => bool" + "signature": "let every: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Int32Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: (t, (. elt, int) => bool) => bool" + "signature": "let everyi: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Int32Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: (t, (. elt) => bool) => t" + "signature": "let filter: (t, elt => bool) => t" }, { "id": "Js.TypedArray2.Int32Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: (t, (. elt, int) => bool) => t" + "signature": "let filteri: (t, (elt, int) => bool) => t" }, { "id": "Js.TypedArray2.Int32Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: (t, (. elt) => bool) => Js.undefined" + "signature": "let find: (t, elt => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Int32Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: (t, (. elt, int) => bool) => Js.undefined" + "signature": "let findi: (t, (elt, int) => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Int32Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: (t, (. elt) => bool) => int" + "signature": "let findIndex: (t, elt => bool) => int" }, { "id": "Js.TypedArray2.Int32Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: (t, (. elt, int) => bool) => int" + "signature": "let findIndexi: (t, (elt, int) => bool) => int" }, { "id": "Js.TypedArray2.Int32Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: (t, (. elt) => unit) => unit" + "signature": "let forEach: (t, elt => unit) => unit" }, { "id": "Js.TypedArray2.Int32Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: (t, (. elt, int) => unit) => unit" + "signature": "let forEachi: (t, (elt, int) => unit) => unit" }, { "id": "Js.TypedArray2.Int32Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: (t, (. elt) => 'b) => typed_array<'b>" + "signature": "let map: (t, elt => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Int32Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: (t, (. elt, int) => 'b) => typed_array<'b>" + "signature": "let mapi: (t, (elt, int) => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Int32Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduce: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Int32Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reducei: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Int32Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduceRight: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Int32Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reduceRighti: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Int32Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: (t, (. elt) => bool) => bool" + "signature": "let some: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Int32Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: (t, (. elt, int) => bool) => bool" + "signature": "let somei: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Int32Array._BYTES_PER_ELEMENT", @@ -2357,7 +2359,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: (t, (. elt, elt) => int) => t" + "signature": "let sortInPlaceWith: (t, (elt, elt) => int) => t" }, { "id": "Js.TypedArray2.Uint16Array.includes", @@ -2466,126 +2468,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: (t, (. elt) => bool) => bool" + "signature": "let every: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Uint16Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: (t, (. elt, int) => bool) => bool" + "signature": "let everyi: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Uint16Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: (t, (. elt) => bool) => t" + "signature": "let filter: (t, elt => bool) => t" }, { "id": "Js.TypedArray2.Uint16Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: (t, (. elt, int) => bool) => t" + "signature": "let filteri: (t, (elt, int) => bool) => t" }, { "id": "Js.TypedArray2.Uint16Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: (t, (. elt) => bool) => Js.undefined" + "signature": "let find: (t, elt => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Uint16Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: (t, (. elt, int) => bool) => Js.undefined" + "signature": "let findi: (t, (elt, int) => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Uint16Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: (t, (. elt) => bool) => int" + "signature": "let findIndex: (t, elt => bool) => int" }, { "id": "Js.TypedArray2.Uint16Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: (t, (. elt, int) => bool) => int" + "signature": "let findIndexi: (t, (elt, int) => bool) => int" }, { "id": "Js.TypedArray2.Uint16Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: (t, (. elt) => unit) => unit" + "signature": "let forEach: (t, elt => unit) => unit" }, { "id": "Js.TypedArray2.Uint16Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: (t, (. elt, int) => unit) => unit" + "signature": "let forEachi: (t, (elt, int) => unit) => unit" }, { "id": "Js.TypedArray2.Uint16Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: (t, (. elt) => 'b) => typed_array<'b>" + "signature": "let map: (t, elt => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Uint16Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: (t, (. elt, int) => 'b) => typed_array<'b>" + "signature": "let mapi: (t, (elt, int) => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Uint16Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduce: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint16Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reducei: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint16Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduceRight: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint16Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reduceRighti: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint16Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: (t, (. elt) => bool) => bool" + "signature": "let some: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Uint16Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: (t, (. elt, int) => bool) => bool" + "signature": "let somei: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Uint16Array._BYTES_PER_ELEMENT", @@ -2789,7 +2791,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: (t, (. elt, elt) => int) => t" + "signature": "let sortInPlaceWith: (t, (elt, elt) => int) => t" }, { "id": "Js.TypedArray2.Int16Array.includes", @@ -2898,126 +2900,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: (t, (. elt) => bool) => bool" + "signature": "let every: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Int16Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: (t, (. elt, int) => bool) => bool" + "signature": "let everyi: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Int16Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: (t, (. elt) => bool) => t" + "signature": "let filter: (t, elt => bool) => t" }, { "id": "Js.TypedArray2.Int16Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: (t, (. elt, int) => bool) => t" + "signature": "let filteri: (t, (elt, int) => bool) => t" }, { "id": "Js.TypedArray2.Int16Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: (t, (. elt) => bool) => Js.undefined" + "signature": "let find: (t, elt => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Int16Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: (t, (. elt, int) => bool) => Js.undefined" + "signature": "let findi: (t, (elt, int) => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Int16Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: (t, (. elt) => bool) => int" + "signature": "let findIndex: (t, elt => bool) => int" }, { "id": "Js.TypedArray2.Int16Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: (t, (. elt, int) => bool) => int" + "signature": "let findIndexi: (t, (elt, int) => bool) => int" }, { "id": "Js.TypedArray2.Int16Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: (t, (. elt) => unit) => unit" + "signature": "let forEach: (t, elt => unit) => unit" }, { "id": "Js.TypedArray2.Int16Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: (t, (. elt, int) => unit) => unit" + "signature": "let forEachi: (t, (elt, int) => unit) => unit" }, { "id": "Js.TypedArray2.Int16Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: (t, (. elt) => 'b) => typed_array<'b>" + "signature": "let map: (t, elt => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Int16Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: (t, (. elt, int) => 'b) => typed_array<'b>" + "signature": "let mapi: (t, (elt, int) => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Int16Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduce: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Int16Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reducei: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Int16Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduceRight: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Int16Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reduceRighti: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Int16Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: (t, (. elt) => bool) => bool" + "signature": "let some: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Int16Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: (t, (. elt, int) => bool) => bool" + "signature": "let somei: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Int16Array._BYTES_PER_ELEMENT", @@ -3221,7 +3223,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: (t, (. elt, elt) => int) => t" + "signature": "let sortInPlaceWith: (t, (elt, elt) => int) => t" }, { "id": "Js.TypedArray2.Uint8ClampedArray.includes", @@ -3330,126 +3332,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: (t, (. elt) => bool) => bool" + "signature": "let every: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Uint8ClampedArray.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: (t, (. elt, int) => bool) => bool" + "signature": "let everyi: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Uint8ClampedArray.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: (t, (. elt) => bool) => t" + "signature": "let filter: (t, elt => bool) => t" }, { "id": "Js.TypedArray2.Uint8ClampedArray.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: (t, (. elt, int) => bool) => t" + "signature": "let filteri: (t, (elt, int) => bool) => t" }, { "id": "Js.TypedArray2.Uint8ClampedArray.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: (t, (. elt) => bool) => Js.undefined" + "signature": "let find: (t, elt => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Uint8ClampedArray.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: (t, (. elt, int) => bool) => Js.undefined" + "signature": "let findi: (t, (elt, int) => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Uint8ClampedArray.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: (t, (. elt) => bool) => int" + "signature": "let findIndex: (t, elt => bool) => int" }, { "id": "Js.TypedArray2.Uint8ClampedArray.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: (t, (. elt, int) => bool) => int" + "signature": "let findIndexi: (t, (elt, int) => bool) => int" }, { "id": "Js.TypedArray2.Uint8ClampedArray.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: (t, (. elt) => unit) => unit" + "signature": "let forEach: (t, elt => unit) => unit" }, { "id": "Js.TypedArray2.Uint8ClampedArray.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: (t, (. elt, int) => unit) => unit" + "signature": "let forEachi: (t, (elt, int) => unit) => unit" }, { "id": "Js.TypedArray2.Uint8ClampedArray.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: (t, (. elt) => 'b) => typed_array<'b>" + "signature": "let map: (t, elt => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Uint8ClampedArray.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: (t, (. elt, int) => 'b) => typed_array<'b>" + "signature": "let mapi: (t, (elt, int) => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Uint8ClampedArray.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduce: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint8ClampedArray.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reducei: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint8ClampedArray.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduceRight: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint8ClampedArray.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reduceRighti: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint8ClampedArray.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: (t, (. elt) => bool) => bool" + "signature": "let some: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Uint8ClampedArray.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: (t, (. elt, int) => bool) => bool" + "signature": "let somei: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Uint8ClampedArray._BYTES_PER_ELEMENT", @@ -3653,7 +3655,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: (t, (. elt, elt) => int) => t" + "signature": "let sortInPlaceWith: (t, (elt, elt) => int) => t" }, { "id": "Js.TypedArray2.Uint8Array.includes", @@ -3762,126 +3764,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: (t, (. elt) => bool) => bool" + "signature": "let every: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Uint8Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: (t, (. elt, int) => bool) => bool" + "signature": "let everyi: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Uint8Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: (t, (. elt) => bool) => t" + "signature": "let filter: (t, elt => bool) => t" }, { "id": "Js.TypedArray2.Uint8Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: (t, (. elt, int) => bool) => t" + "signature": "let filteri: (t, (elt, int) => bool) => t" }, { "id": "Js.TypedArray2.Uint8Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: (t, (. elt) => bool) => Js.undefined" + "signature": "let find: (t, elt => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Uint8Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: (t, (. elt, int) => bool) => Js.undefined" + "signature": "let findi: (t, (elt, int) => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Uint8Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: (t, (. elt) => bool) => int" + "signature": "let findIndex: (t, elt => bool) => int" }, { "id": "Js.TypedArray2.Uint8Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: (t, (. elt, int) => bool) => int" + "signature": "let findIndexi: (t, (elt, int) => bool) => int" }, { "id": "Js.TypedArray2.Uint8Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: (t, (. elt) => unit) => unit" + "signature": "let forEach: (t, elt => unit) => unit" }, { "id": "Js.TypedArray2.Uint8Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: (t, (. elt, int) => unit) => unit" + "signature": "let forEachi: (t, (elt, int) => unit) => unit" }, { "id": "Js.TypedArray2.Uint8Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: (t, (. elt) => 'b) => typed_array<'b>" + "signature": "let map: (t, elt => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Uint8Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: (t, (. elt, int) => 'b) => typed_array<'b>" + "signature": "let mapi: (t, (elt, int) => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Uint8Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduce: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint8Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reducei: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint8Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduceRight: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint8Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reduceRighti: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Uint8Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: (t, (. elt) => bool) => bool" + "signature": "let some: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Uint8Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: (t, (. elt, int) => bool) => bool" + "signature": "let somei: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Uint8Array._BYTES_PER_ELEMENT", @@ -4085,7 +4087,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: (t, (. elt, elt) => int) => t" + "signature": "let sortInPlaceWith: (t, (elt, elt) => int) => t" }, { "id": "Js.TypedArray2.Int8Array.includes", @@ -4194,126 +4196,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: (t, (. elt) => bool) => bool" + "signature": "let every: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Int8Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: (t, (. elt, int) => bool) => bool" + "signature": "let everyi: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Int8Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: (t, (. elt) => bool) => t" + "signature": "let filter: (t, elt => bool) => t" }, { "id": "Js.TypedArray2.Int8Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: (t, (. elt, int) => bool) => t" + "signature": "let filteri: (t, (elt, int) => bool) => t" }, { "id": "Js.TypedArray2.Int8Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: (t, (. elt) => bool) => Js.undefined" + "signature": "let find: (t, elt => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Int8Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: (t, (. elt, int) => bool) => Js.undefined" + "signature": "let findi: (t, (elt, int) => bool) => Js.undefined" }, { "id": "Js.TypedArray2.Int8Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: (t, (. elt) => bool) => int" + "signature": "let findIndex: (t, elt => bool) => int" }, { "id": "Js.TypedArray2.Int8Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: (t, (. elt, int) => bool) => int" + "signature": "let findIndexi: (t, (elt, int) => bool) => int" }, { "id": "Js.TypedArray2.Int8Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: (t, (. elt) => unit) => unit" + "signature": "let forEach: (t, elt => unit) => unit" }, { "id": "Js.TypedArray2.Int8Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: (t, (. elt, int) => unit) => unit" + "signature": "let forEachi: (t, (elt, int) => unit) => unit" }, { "id": "Js.TypedArray2.Int8Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: (t, (. elt) => 'b) => typed_array<'b>" + "signature": "let map: (t, elt => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Int8Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: (t, (. elt, int) => 'b) => typed_array<'b>" + "signature": "let mapi: (t, (elt, int) => 'b) => typed_array<'b>" }, { "id": "Js.TypedArray2.Int8Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduce: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Int8Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reducei: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Int8Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: (t, (. 'b, elt) => 'b, 'b) => 'b" + "signature": "let reduceRight: (t, ('b, elt) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Int8Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: (t, (. 'b, elt, int) => 'b, 'b) => 'b" + "signature": "let reduceRighti: (t, ('b, elt, int) => 'b, 'b) => 'b" }, { "id": "Js.TypedArray2.Int8Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: (t, (. elt) => bool) => bool" + "signature": "let some: (t, elt => bool) => bool" }, { "id": "Js.TypedArray2.Int8Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: (t, (. elt, int) => bool) => bool" + "signature": "let somei: (t, (elt, int) => bool) => bool" }, { "id": "Js.TypedArray2.Int8Array._BYTES_PER_ELEMENT", @@ -4375,7 +4377,9 @@ "js/typedarray2/arraybuffer": { "id": "Js.TypedArray2.ArrayBuffer", "name": "ArrayBuffer", - "docstrings": [], + "docstrings": [ + "The underlying buffer that the typed arrays provide views of\n\n **see** [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)" + ], "items": [ { "id": "Js.TypedArray2.ArrayBuffer.t", @@ -4419,7 +4423,9 @@ "js/typed_array/dataview": { "id": "Js.Typed_array.DataView", "name": "DataView", - "docstrings": [], + "docstrings": [ + "The DataView view provides a low-level interface for reading and writing\nmultiple number types in an ArrayBuffer irrespective of the platform's endianness.\n\n**see** [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)" + ], "items": [ { "id": "Js.Typed_array.DataView.t", @@ -4700,7 +4706,7 @@ "kind": "type", "name": "typed_array", "docstrings": [], - "signature": "type typed_array<\\n 'a,\\n> = Js_typed_array2.Float64Array.typed_array<'a>" + "signature": "type typed_array<\n 'a,\n> = Js_typed_array2.Float64Array.typed_array<'a>" }, { "id": "Js.Typed_array.Float64Array.t", @@ -4826,7 +4832,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: ((. elt, elt) => int, t) => t" + "signature": "let sortInPlaceWith: ((elt, elt) => int, t) => t" }, { "id": "Js.Typed_array.Float64Array.includes", @@ -4931,126 +4937,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: ((. elt) => bool, t) => bool" + "signature": "let every: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Float64Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: ((. elt, int) => bool, t) => bool" + "signature": "let everyi: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Float64Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: ((. elt) => bool, t) => t" + "signature": "let filter: (elt => bool, t) => t" }, { "id": "Js.Typed_array.Float64Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: ((. elt, int) => bool, t) => t" + "signature": "let filteri: ((elt, int) => bool, t) => t" }, { "id": "Js.Typed_array.Float64Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: ((. elt) => bool, t) => Js.undefined" + "signature": "let find: (elt => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Float64Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: ((. elt, int) => bool, t) => Js.undefined" + "signature": "let findi: ((elt, int) => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Float64Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: ((. elt) => bool, t) => int" + "signature": "let findIndex: (elt => bool, t) => int" }, { "id": "Js.Typed_array.Float64Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: ((. elt, int) => bool, t) => int" + "signature": "let findIndexi: ((elt, int) => bool, t) => int" }, { "id": "Js.Typed_array.Float64Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: ((. elt) => unit, t) => unit" + "signature": "let forEach: (elt => unit, t) => unit" }, { "id": "Js.Typed_array.Float64Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: ((. elt, int) => unit, t) => unit" + "signature": "let forEachi: ((elt, int) => unit, t) => unit" }, { "id": "Js.Typed_array.Float64Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: ((. elt) => 'a, t) => typed_array<'a>" + "signature": "let map: (elt => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Float64Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: ((. elt, int) => 'a, t) => typed_array<'a>" + "signature": "let mapi: ((elt, int) => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Float64Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduce: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Float64Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reducei: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Float64Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduceRight: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Float64Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reduceRighti: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Float64Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: ((. elt) => bool, t) => bool" + "signature": "let some: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Float64Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: ((. elt, int) => bool, t) => bool" + "signature": "let somei: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Float64Array._BYTES_PER_ELEMENT", @@ -5150,7 +5156,7 @@ "kind": "type", "name": "typed_array", "docstrings": [], - "signature": "type typed_array<\\n 'a,\\n> = Js_typed_array2.Float32Array.typed_array<'a>" + "signature": "type typed_array<\n 'a,\n> = Js_typed_array2.Float32Array.typed_array<'a>" }, { "id": "Js.Typed_array.Float32Array.t", @@ -5276,7 +5282,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: ((. elt, elt) => int, t) => t" + "signature": "let sortInPlaceWith: ((elt, elt) => int, t) => t" }, { "id": "Js.Typed_array.Float32Array.includes", @@ -5381,126 +5387,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: ((. elt) => bool, t) => bool" + "signature": "let every: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Float32Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: ((. elt, int) => bool, t) => bool" + "signature": "let everyi: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Float32Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: ((. elt) => bool, t) => t" + "signature": "let filter: (elt => bool, t) => t" }, { "id": "Js.Typed_array.Float32Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: ((. elt, int) => bool, t) => t" + "signature": "let filteri: ((elt, int) => bool, t) => t" }, { "id": "Js.Typed_array.Float32Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: ((. elt) => bool, t) => Js.undefined" + "signature": "let find: (elt => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Float32Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: ((. elt, int) => bool, t) => Js.undefined" + "signature": "let findi: ((elt, int) => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Float32Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: ((. elt) => bool, t) => int" + "signature": "let findIndex: (elt => bool, t) => int" }, { "id": "Js.Typed_array.Float32Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: ((. elt, int) => bool, t) => int" + "signature": "let findIndexi: ((elt, int) => bool, t) => int" }, { "id": "Js.Typed_array.Float32Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: ((. elt) => unit, t) => unit" + "signature": "let forEach: (elt => unit, t) => unit" }, { "id": "Js.Typed_array.Float32Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: ((. elt, int) => unit, t) => unit" + "signature": "let forEachi: ((elt, int) => unit, t) => unit" }, { "id": "Js.Typed_array.Float32Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: ((. elt) => 'a, t) => typed_array<'a>" + "signature": "let map: (elt => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Float32Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: ((. elt, int) => 'a, t) => typed_array<'a>" + "signature": "let mapi: ((elt, int) => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Float32Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduce: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Float32Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reducei: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Float32Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduceRight: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Float32Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reduceRighti: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Float32Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: ((. elt) => bool, t) => bool" + "signature": "let some: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Float32Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: ((. elt, int) => bool, t) => bool" + "signature": "let somei: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Float32Array._BYTES_PER_ELEMENT", @@ -5594,7 +5600,7 @@ "kind": "type", "name": "typed_array", "docstrings": [], - "signature": "type typed_array<\\n 'a,\\n> = Js_typed_array2.Uint32Array.typed_array<'a>" + "signature": "type typed_array<\n 'a,\n> = Js_typed_array2.Uint32Array.typed_array<'a>" }, { "id": "Js.Typed_array.Uint32Array.t", @@ -5720,7 +5726,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: ((. elt, elt) => int, t) => t" + "signature": "let sortInPlaceWith: ((elt, elt) => int, t) => t" }, { "id": "Js.Typed_array.Uint32Array.includes", @@ -5825,126 +5831,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: ((. elt) => bool, t) => bool" + "signature": "let every: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Uint32Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: ((. elt, int) => bool, t) => bool" + "signature": "let everyi: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Uint32Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: ((. elt) => bool, t) => t" + "signature": "let filter: (elt => bool, t) => t" }, { "id": "Js.Typed_array.Uint32Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: ((. elt, int) => bool, t) => t" + "signature": "let filteri: ((elt, int) => bool, t) => t" }, { "id": "Js.Typed_array.Uint32Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: ((. elt) => bool, t) => Js.undefined" + "signature": "let find: (elt => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Uint32Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: ((. elt, int) => bool, t) => Js.undefined" + "signature": "let findi: ((elt, int) => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Uint32Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: ((. elt) => bool, t) => int" + "signature": "let findIndex: (elt => bool, t) => int" }, { "id": "Js.Typed_array.Uint32Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: ((. elt, int) => bool, t) => int" + "signature": "let findIndexi: ((elt, int) => bool, t) => int" }, { "id": "Js.Typed_array.Uint32Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: ((. elt) => unit, t) => unit" + "signature": "let forEach: (elt => unit, t) => unit" }, { "id": "Js.Typed_array.Uint32Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: ((. elt, int) => unit, t) => unit" + "signature": "let forEachi: ((elt, int) => unit, t) => unit" }, { "id": "Js.Typed_array.Uint32Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: ((. elt) => 'a, t) => typed_array<'a>" + "signature": "let map: (elt => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Uint32Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: ((. elt, int) => 'a, t) => typed_array<'a>" + "signature": "let mapi: ((elt, int) => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Uint32Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduce: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint32Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reducei: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint32Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduceRight: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint32Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reduceRighti: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint32Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: ((. elt) => bool, t) => bool" + "signature": "let some: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Uint32Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: ((. elt, int) => bool, t) => bool" + "signature": "let somei: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Uint32Array._BYTES_PER_ELEMENT", @@ -6028,7 +6034,7 @@ "kind": "type", "name": "typed_array", "docstrings": [], - "signature": "type typed_array<\\n 'a,\\n> = Js_typed_array2.Int32Array.typed_array<'a>" + "signature": "type typed_array<\n 'a,\n> = Js_typed_array2.Int32Array.typed_array<'a>" }, { "id": "Js.Typed_array.Int32Array.t", @@ -6154,7 +6160,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: ((. elt, elt) => int, t) => t" + "signature": "let sortInPlaceWith: ((elt, elt) => int, t) => t" }, { "id": "Js.Typed_array.Int32Array.includes", @@ -6259,126 +6265,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: ((. elt) => bool, t) => bool" + "signature": "let every: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Int32Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: ((. elt, int) => bool, t) => bool" + "signature": "let everyi: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Int32Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: ((. elt) => bool, t) => t" + "signature": "let filter: (elt => bool, t) => t" }, { "id": "Js.Typed_array.Int32Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: ((. elt, int) => bool, t) => t" + "signature": "let filteri: ((elt, int) => bool, t) => t" }, { "id": "Js.Typed_array.Int32Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: ((. elt) => bool, t) => Js.undefined" + "signature": "let find: (elt => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Int32Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: ((. elt, int) => bool, t) => Js.undefined" + "signature": "let findi: ((elt, int) => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Int32Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: ((. elt) => bool, t) => int" + "signature": "let findIndex: (elt => bool, t) => int" }, { "id": "Js.Typed_array.Int32Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: ((. elt, int) => bool, t) => int" + "signature": "let findIndexi: ((elt, int) => bool, t) => int" }, { "id": "Js.Typed_array.Int32Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: ((. elt) => unit, t) => unit" + "signature": "let forEach: (elt => unit, t) => unit" }, { "id": "Js.Typed_array.Int32Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: ((. elt, int) => unit, t) => unit" + "signature": "let forEachi: ((elt, int) => unit, t) => unit" }, { "id": "Js.Typed_array.Int32Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: ((. elt) => 'a, t) => typed_array<'a>" + "signature": "let map: (elt => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Int32Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: ((. elt, int) => 'a, t) => typed_array<'a>" + "signature": "let mapi: ((elt, int) => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Int32Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduce: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Int32Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reducei: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Int32Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduceRight: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Int32Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reduceRighti: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Int32Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: ((. elt) => bool, t) => bool" + "signature": "let some: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Int32Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: ((. elt, int) => bool, t) => bool" + "signature": "let somei: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Int32Array._BYTES_PER_ELEMENT", @@ -6472,7 +6478,7 @@ "kind": "type", "name": "typed_array", "docstrings": [], - "signature": "type typed_array<\\n 'a,\\n> = Js_typed_array2.Uint16Array.typed_array<'a>" + "signature": "type typed_array<\n 'a,\n> = Js_typed_array2.Uint16Array.typed_array<'a>" }, { "id": "Js.Typed_array.Uint16Array.t", @@ -6598,7 +6604,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: ((. elt, elt) => int, t) => t" + "signature": "let sortInPlaceWith: ((elt, elt) => int, t) => t" }, { "id": "Js.Typed_array.Uint16Array.includes", @@ -6703,126 +6709,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: ((. elt) => bool, t) => bool" + "signature": "let every: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Uint16Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: ((. elt, int) => bool, t) => bool" + "signature": "let everyi: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Uint16Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: ((. elt) => bool, t) => t" + "signature": "let filter: (elt => bool, t) => t" }, { "id": "Js.Typed_array.Uint16Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: ((. elt, int) => bool, t) => t" + "signature": "let filteri: ((elt, int) => bool, t) => t" }, { "id": "Js.Typed_array.Uint16Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: ((. elt) => bool, t) => Js.undefined" + "signature": "let find: (elt => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Uint16Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: ((. elt, int) => bool, t) => Js.undefined" + "signature": "let findi: ((elt, int) => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Uint16Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: ((. elt) => bool, t) => int" + "signature": "let findIndex: (elt => bool, t) => int" }, { "id": "Js.Typed_array.Uint16Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: ((. elt, int) => bool, t) => int" + "signature": "let findIndexi: ((elt, int) => bool, t) => int" }, { "id": "Js.Typed_array.Uint16Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: ((. elt) => unit, t) => unit" + "signature": "let forEach: (elt => unit, t) => unit" }, { "id": "Js.Typed_array.Uint16Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: ((. elt, int) => unit, t) => unit" + "signature": "let forEachi: ((elt, int) => unit, t) => unit" }, { "id": "Js.Typed_array.Uint16Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: ((. elt) => 'a, t) => typed_array<'a>" + "signature": "let map: (elt => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Uint16Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: ((. elt, int) => 'a, t) => typed_array<'a>" + "signature": "let mapi: ((elt, int) => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Uint16Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduce: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint16Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reducei: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint16Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduceRight: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint16Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reduceRighti: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint16Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: ((. elt) => bool, t) => bool" + "signature": "let some: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Uint16Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: ((. elt, int) => bool, t) => bool" + "signature": "let somei: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Uint16Array._BYTES_PER_ELEMENT", @@ -6900,7 +6906,7 @@ "kind": "type", "name": "typed_array", "docstrings": [], - "signature": "type typed_array<\\n 'a,\\n> = Js_typed_array2.Int16Array.typed_array<'a>" + "signature": "type typed_array<\n 'a,\n> = Js_typed_array2.Int16Array.typed_array<'a>" }, { "id": "Js.Typed_array.Int16Array.t", @@ -7026,7 +7032,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: ((. elt, elt) => int, t) => t" + "signature": "let sortInPlaceWith: ((elt, elt) => int, t) => t" }, { "id": "Js.Typed_array.Int16Array.includes", @@ -7131,126 +7137,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: ((. elt) => bool, t) => bool" + "signature": "let every: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Int16Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: ((. elt, int) => bool, t) => bool" + "signature": "let everyi: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Int16Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: ((. elt) => bool, t) => t" + "signature": "let filter: (elt => bool, t) => t" }, { "id": "Js.Typed_array.Int16Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: ((. elt, int) => bool, t) => t" + "signature": "let filteri: ((elt, int) => bool, t) => t" }, { "id": "Js.Typed_array.Int16Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: ((. elt) => bool, t) => Js.undefined" + "signature": "let find: (elt => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Int16Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: ((. elt, int) => bool, t) => Js.undefined" + "signature": "let findi: ((elt, int) => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Int16Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: ((. elt) => bool, t) => int" + "signature": "let findIndex: (elt => bool, t) => int" }, { "id": "Js.Typed_array.Int16Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: ((. elt, int) => bool, t) => int" + "signature": "let findIndexi: ((elt, int) => bool, t) => int" }, { "id": "Js.Typed_array.Int16Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: ((. elt) => unit, t) => unit" + "signature": "let forEach: (elt => unit, t) => unit" }, { "id": "Js.Typed_array.Int16Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: ((. elt, int) => unit, t) => unit" + "signature": "let forEachi: ((elt, int) => unit, t) => unit" }, { "id": "Js.Typed_array.Int16Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: ((. elt) => 'a, t) => typed_array<'a>" + "signature": "let map: (elt => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Int16Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: ((. elt, int) => 'a, t) => typed_array<'a>" + "signature": "let mapi: ((elt, int) => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Int16Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduce: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Int16Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reducei: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Int16Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduceRight: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Int16Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reduceRighti: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Int16Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: ((. elt) => bool, t) => bool" + "signature": "let some: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Int16Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: ((. elt, int) => bool, t) => bool" + "signature": "let somei: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Int16Array._BYTES_PER_ELEMENT", @@ -7328,7 +7334,7 @@ "kind": "type", "name": "typed_array", "docstrings": [], - "signature": "type typed_array<\\n 'a,\\n> = Js_typed_array2.Uint8ClampedArray.typed_array<'a>" + "signature": "type typed_array<\n 'a,\n> = Js_typed_array2.Uint8ClampedArray.typed_array<'a>" }, { "id": "Js.Typed_array.Uint8ClampedArray.t", @@ -7454,7 +7460,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: ((. elt, elt) => int, t) => t" + "signature": "let sortInPlaceWith: ((elt, elt) => int, t) => t" }, { "id": "Js.Typed_array.Uint8ClampedArray.includes", @@ -7559,126 +7565,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: ((. elt) => bool, t) => bool" + "signature": "let every: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Uint8ClampedArray.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: ((. elt, int) => bool, t) => bool" + "signature": "let everyi: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Uint8ClampedArray.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: ((. elt) => bool, t) => t" + "signature": "let filter: (elt => bool, t) => t" }, { "id": "Js.Typed_array.Uint8ClampedArray.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: ((. elt, int) => bool, t) => t" + "signature": "let filteri: ((elt, int) => bool, t) => t" }, { "id": "Js.Typed_array.Uint8ClampedArray.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: ((. elt) => bool, t) => Js.undefined" + "signature": "let find: (elt => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Uint8ClampedArray.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: ((. elt, int) => bool, t) => Js.undefined" + "signature": "let findi: ((elt, int) => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Uint8ClampedArray.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: ((. elt) => bool, t) => int" + "signature": "let findIndex: (elt => bool, t) => int" }, { "id": "Js.Typed_array.Uint8ClampedArray.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: ((. elt, int) => bool, t) => int" + "signature": "let findIndexi: ((elt, int) => bool, t) => int" }, { "id": "Js.Typed_array.Uint8ClampedArray.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: ((. elt) => unit, t) => unit" + "signature": "let forEach: (elt => unit, t) => unit" }, { "id": "Js.Typed_array.Uint8ClampedArray.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: ((. elt, int) => unit, t) => unit" + "signature": "let forEachi: ((elt, int) => unit, t) => unit" }, { "id": "Js.Typed_array.Uint8ClampedArray.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: ((. elt) => 'a, t) => typed_array<'a>" + "signature": "let map: (elt => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Uint8ClampedArray.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: ((. elt, int) => 'a, t) => typed_array<'a>" + "signature": "let mapi: ((elt, int) => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Uint8ClampedArray.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduce: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint8ClampedArray.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reducei: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint8ClampedArray.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduceRight: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint8ClampedArray.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reduceRighti: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint8ClampedArray.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: ((. elt) => bool, t) => bool" + "signature": "let some: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Uint8ClampedArray.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: ((. elt, int) => bool, t) => bool" + "signature": "let somei: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Uint8ClampedArray._BYTES_PER_ELEMENT", @@ -7756,7 +7762,7 @@ "kind": "type", "name": "typed_array", "docstrings": [], - "signature": "type typed_array<\\n 'a,\\n> = Js_typed_array2.Uint8Array.typed_array<'a>" + "signature": "type typed_array<\n 'a,\n> = Js_typed_array2.Uint8Array.typed_array<'a>" }, { "id": "Js.Typed_array.Uint8Array.t", @@ -7882,7 +7888,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: ((. elt, elt) => int, t) => t" + "signature": "let sortInPlaceWith: ((elt, elt) => int, t) => t" }, { "id": "Js.Typed_array.Uint8Array.includes", @@ -7987,126 +7993,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: ((. elt) => bool, t) => bool" + "signature": "let every: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Uint8Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: ((. elt, int) => bool, t) => bool" + "signature": "let everyi: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Uint8Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: ((. elt) => bool, t) => t" + "signature": "let filter: (elt => bool, t) => t" }, { "id": "Js.Typed_array.Uint8Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: ((. elt, int) => bool, t) => t" + "signature": "let filteri: ((elt, int) => bool, t) => t" }, { "id": "Js.Typed_array.Uint8Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: ((. elt) => bool, t) => Js.undefined" + "signature": "let find: (elt => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Uint8Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: ((. elt, int) => bool, t) => Js.undefined" + "signature": "let findi: ((elt, int) => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Uint8Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: ((. elt) => bool, t) => int" + "signature": "let findIndex: (elt => bool, t) => int" }, { "id": "Js.Typed_array.Uint8Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: ((. elt, int) => bool, t) => int" + "signature": "let findIndexi: ((elt, int) => bool, t) => int" }, { "id": "Js.Typed_array.Uint8Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: ((. elt) => unit, t) => unit" + "signature": "let forEach: (elt => unit, t) => unit" }, { "id": "Js.Typed_array.Uint8Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: ((. elt, int) => unit, t) => unit" + "signature": "let forEachi: ((elt, int) => unit, t) => unit" }, { "id": "Js.Typed_array.Uint8Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: ((. elt) => 'a, t) => typed_array<'a>" + "signature": "let map: (elt => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Uint8Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: ((. elt, int) => 'a, t) => typed_array<'a>" + "signature": "let mapi: ((elt, int) => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Uint8Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduce: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint8Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reducei: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint8Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduceRight: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint8Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reduceRighti: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Uint8Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: ((. elt) => bool, t) => bool" + "signature": "let some: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Uint8Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: ((. elt, int) => bool, t) => bool" + "signature": "let somei: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Uint8Array._BYTES_PER_ELEMENT", @@ -8184,7 +8190,7 @@ "kind": "type", "name": "typed_array", "docstrings": [], - "signature": "type typed_array<\\n 'a,\\n> = Js_typed_array2.Int8Array.typed_array<'a>" + "signature": "type typed_array<\n 'a,\n> = Js_typed_array2.Int8Array.typed_array<'a>" }, { "id": "Js.Typed_array.Int8Array.t", @@ -8310,7 +8316,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: ((. elt, elt) => int, t) => t" + "signature": "let sortInPlaceWith: ((elt, elt) => int, t) => t" }, { "id": "Js.Typed_array.Int8Array.includes", @@ -8415,126 +8421,126 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: ((. elt) => bool, t) => bool" + "signature": "let every: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Int8Array.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: ((. elt, int) => bool, t) => bool" + "signature": "let everyi: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Int8Array.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: ((. elt) => bool, t) => t" + "signature": "let filter: (elt => bool, t) => t" }, { "id": "Js.Typed_array.Int8Array.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: ((. elt, int) => bool, t) => t" + "signature": "let filteri: ((elt, int) => bool, t) => t" }, { "id": "Js.Typed_array.Int8Array.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: ((. elt) => bool, t) => Js.undefined" + "signature": "let find: (elt => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Int8Array.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: ((. elt, int) => bool, t) => Js.undefined" + "signature": "let findi: ((elt, int) => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.Int8Array.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: ((. elt) => bool, t) => int" + "signature": "let findIndex: (elt => bool, t) => int" }, { "id": "Js.Typed_array.Int8Array.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: ((. elt, int) => bool, t) => int" + "signature": "let findIndexi: ((elt, int) => bool, t) => int" }, { "id": "Js.Typed_array.Int8Array.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: ((. elt) => unit, t) => unit" + "signature": "let forEach: (elt => unit, t) => unit" }, { "id": "Js.Typed_array.Int8Array.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: ((. elt, int) => unit, t) => unit" + "signature": "let forEachi: ((elt, int) => unit, t) => unit" }, { "id": "Js.Typed_array.Int8Array.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: ((. elt) => 'a, t) => typed_array<'a>" + "signature": "let map: (elt => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Int8Array.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: ((. elt, int) => 'a, t) => typed_array<'a>" + "signature": "let mapi: ((elt, int) => 'a, t) => typed_array<'a>" }, { "id": "Js.Typed_array.Int8Array.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduce: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Int8Array.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reducei: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Int8Array.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: ((. 'a, elt) => 'a, 'a, t) => 'a" + "signature": "let reduceRight: (('a, elt) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Int8Array.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: ((. 'a, elt, int) => 'a, 'a, t) => 'a" + "signature": "let reduceRighti: (('a, elt, int) => 'a, 'a, t) => 'a" }, { "id": "Js.Typed_array.Int8Array.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: ((. elt) => bool, t) => bool" + "signature": "let some: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.Int8Array.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: ((. elt, int) => bool, t) => bool" + "signature": "let somei: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.Int8Array._BYTES_PER_ELEMENT", @@ -8736,7 +8742,7 @@ "kind": "value", "name": "sortInPlaceWith", "docstrings": [], - "signature": "let sortInPlaceWith: ((. elt, elt) => int, t) => t" + "signature": "let sortInPlaceWith: ((elt, elt) => int, t) => t" }, { "id": "Js.Typed_array.S.includes", @@ -8841,133 +8847,135 @@ "kind": "value", "name": "every", "docstrings": [], - "signature": "let every: ((. elt) => bool, t) => bool" + "signature": "let every: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.S.everyi", "kind": "value", "name": "everyi", "docstrings": [], - "signature": "let everyi: ((. elt, int) => bool, t) => bool" + "signature": "let everyi: ((elt, int) => bool, t) => bool" }, { "id": "Js.Typed_array.S.filter", "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: ((. elt) => bool, t) => t" + "signature": "let filter: (elt => bool, t) => t" }, { "id": "Js.Typed_array.S.filteri", "kind": "value", "name": "filteri", "docstrings": [], - "signature": "let filteri: ((. elt, int) => bool, t) => t" + "signature": "let filteri: ((elt, int) => bool, t) => t" }, { "id": "Js.Typed_array.S.find", "kind": "value", "name": "find", "docstrings": [], - "signature": "let find: ((. elt) => bool, t) => Js.undefined" + "signature": "let find: (elt => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.S.findi", "kind": "value", "name": "findi", "docstrings": [], - "signature": "let findi: ((. elt, int) => bool, t) => Js.undefined" + "signature": "let findi: ((elt, int) => bool, t) => Js.undefined" }, { "id": "Js.Typed_array.S.findIndex", "kind": "value", "name": "findIndex", "docstrings": [], - "signature": "let findIndex: ((. elt) => bool, t) => int" + "signature": "let findIndex: (elt => bool, t) => int" }, { "id": "Js.Typed_array.S.findIndexi", "kind": "value", "name": "findIndexi", "docstrings": [], - "signature": "let findIndexi: ((. elt, int) => bool, t) => int" + "signature": "let findIndexi: ((elt, int) => bool, t) => int" }, { "id": "Js.Typed_array.S.forEach", "kind": "value", "name": "forEach", "docstrings": [], - "signature": "let forEach: ((. elt) => unit, t) => unit" + "signature": "let forEach: (elt => unit, t) => unit" }, { "id": "Js.Typed_array.S.forEachi", "kind": "value", "name": "forEachi", "docstrings": [], - "signature": "let forEachi: ((. elt, int) => unit, t) => unit" + "signature": "let forEachi: ((elt, int) => unit, t) => unit" }, { "id": "Js.Typed_array.S.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: ((. elt) => 'b, t) => typed_array<'b>" + "signature": "let map: (elt => 'b, t) => typed_array<'b>" }, { "id": "Js.Typed_array.S.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: ((. elt, int) => 'b, t) => typed_array<'b>" + "signature": "let mapi: ((elt, int) => 'b, t) => typed_array<'b>" }, { "id": "Js.Typed_array.S.reduce", "kind": "value", "name": "reduce", "docstrings": [], - "signature": "let reduce: ((. 'b, elt) => 'b, 'b, t) => 'b" + "signature": "let reduce: (('b, elt) => 'b, 'b, t) => 'b" }, { "id": "Js.Typed_array.S.reducei", "kind": "value", "name": "reducei", "docstrings": [], - "signature": "let reducei: ((. 'b, elt, int) => 'b, 'b, t) => 'b" + "signature": "let reducei: (('b, elt, int) => 'b, 'b, t) => 'b" }, { "id": "Js.Typed_array.S.reduceRight", "kind": "value", "name": "reduceRight", "docstrings": [], - "signature": "let reduceRight: ((. 'b, elt) => 'b, 'b, t) => 'b" + "signature": "let reduceRight: (('b, elt) => 'b, 'b, t) => 'b" }, { "id": "Js.Typed_array.S.reduceRighti", "kind": "value", "name": "reduceRighti", "docstrings": [], - "signature": "let reduceRighti: ((. 'b, elt, int) => 'b, 'b, t) => 'b" + "signature": "let reduceRighti: (('b, elt, int) => 'b, 'b, t) => 'b" }, { "id": "Js.Typed_array.S.some", "kind": "value", "name": "some", "docstrings": [], - "signature": "let some: ((. elt) => bool, t) => bool" + "signature": "let some: (elt => bool, t) => bool" }, { "id": "Js.Typed_array.S.somei", "kind": "value", "name": "somei", "docstrings": [], - "signature": "let somei: ((. elt, int) => bool, t) => bool" + "signature": "let somei: ((elt, int) => bool, t) => bool" } ] }, "js/typed_array/arraybuffer": { "id": "Js.Typed_array.ArrayBuffer", "name": "ArrayBuffer", - "docstrings": [], + "docstrings": [ + "The underlying buffer that the typed arrays provide views of\n\n **see** [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)" + ], "items": [ { "id": "Js.Typed_array.ArrayBuffer.t", @@ -9041,7 +9049,7 @@ "docstrings": [ "Underlying type of a JSON value" ], - "signature": "type t<_> =\\n | String: t\\n | Number: t\\n | Object: t>\\n | Array: t>\\n | Boolean: t\\n | Null: t" + "signature": "type t<_> =\n | String: t\n | Number: t\n | Object: t>\n | Array: t>\n | Boolean: t\n | Null: t" } ] }, @@ -9302,7 +9310,7 @@ "kind": "value", "name": "filterInPlace", "docstrings": [], - "signature": "let filterInPlace: ((. 'a) => bool, t<'a>) => unit" + "signature": "let filterInPlace: ('a => bool, t<'a>) => unit" }, { "id": "Js.Vector.empty", @@ -9339,14 +9347,14 @@ "kind": "value", "name": "iter", "docstrings": [], - "signature": "let iter: ((. 'a) => unit, t<'a>) => unit" + "signature": "let iter: ('a => unit, t<'a>) => unit" }, { "id": "Js.Vector.iteri", "kind": "value", "name": "iteri", "docstrings": [], - "signature": "let iteri: ((. int, 'a) => unit, t<'a>) => unit" + "signature": "let iteri: ((int, 'a) => unit, t<'a>) => unit" }, { "id": "Js.Vector.toList", @@ -9360,28 +9368,28 @@ "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: ((. 'a) => 'b, t<'a>) => t<'b>" + "signature": "let map: ('a => 'b, t<'a>) => t<'b>" }, { "id": "Js.Vector.mapi", "kind": "value", "name": "mapi", "docstrings": [], - "signature": "let mapi: ((. int, 'a) => 'b, t<'a>) => t<'b>" + "signature": "let mapi: ((int, 'a) => 'b, t<'a>) => t<'b>" }, { "id": "Js.Vector.foldLeft", "kind": "value", "name": "foldLeft", "docstrings": [], - "signature": "let foldLeft: ((. 'a, 'b) => 'a, 'a, t<'b>) => 'a" + "signature": "let foldLeft: (('a, 'b) => 'a, 'a, t<'b>) => 'a" }, { "id": "Js.Vector.foldRight", "kind": "value", "name": "foldRight", "docstrings": [], - "signature": "let foldRight: ((. 'b, 'a) => 'a, t<'b>, 'a) => 'a" + "signature": "let foldRight: (('b, 'a) => 'a, t<'b>, 'a) => 'a" }, { "id": "Js.Vector.length", @@ -9426,7 +9434,7 @@ "docstrings": [ "Raises `RangeError` when n is negative.\nn : size" ], - "signature": "let init: (int, (. int) => 'a) => t<'a>" + "signature": "let init: (int, int => 'a) => t<'a>" }, { "id": "Js.Vector.append", @@ -9528,28 +9536,28 @@ "kind": "value", "name": "mapRev", "docstrings": [], - "signature": "let mapRev: ((. 'a) => 'b, t<'a>) => t<'b>" + "signature": "let mapRev: ('a => 'b, t<'a>) => t<'b>" }, { "id": "Js.List.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: ((. 'a) => 'b, t<'a>) => t<'b>" + "signature": "let map: ('a => 'b, t<'a>) => t<'b>" }, { "id": "Js.List.iter", "kind": "value", "name": "iter", "docstrings": [], - "signature": "let iter: ((. 'a) => unit, t<'a>) => unit" + "signature": "let iter: ('a => unit, t<'a>) => unit" }, { "id": "Js.List.iteri", "kind": "value", "name": "iteri", "docstrings": [], - "signature": "let iteri: ((. int, 'a) => unit, t<'a>) => unit" + "signature": "let iteri: ((int, 'a) => unit, t<'a>) => unit" }, { "id": "Js.List.foldLeft", @@ -9558,7 +9566,7 @@ "docstrings": [ "Application order is left to right, tail recurisve" ], - "signature": "let foldLeft: ((. 'a, 'b) => 'a, 'a, list<'b>) => 'a" + "signature": "let foldLeft: (('a, 'b) => 'a, 'a, list<'b>) => 'a" }, { "id": "Js.List.foldRight", @@ -9567,7 +9575,7 @@ "docstrings": [ "Application order is right to left tail-recursive." ], - "signature": "let foldRight: ((. 'a, 'b) => 'b, list<'a>, 'b) => 'b" + "signature": "let foldRight: (('a, 'b) => 'b, list<'a>, 'b) => 'b" }, { "id": "Js.List.flatten", @@ -9581,28 +9589,28 @@ "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: ((. 'a) => bool, t<'a>) => t<'a>" + "signature": "let filter: ('a => bool, t<'a>) => t<'a>" }, { "id": "Js.List.filterMap", "kind": "value", "name": "filterMap", "docstrings": [], - "signature": "let filterMap: ((. 'a) => option<'b>, t<'a>) => t<'b>" + "signature": "let filterMap: ('a => option<'b>, t<'a>) => t<'b>" }, { "id": "Js.List.countBy", "kind": "value", "name": "countBy", "docstrings": [], - "signature": "let countBy: ((. 'a) => bool, list<'a>) => int" + "signature": "let countBy: ('a => bool, list<'a>) => int" }, { "id": "Js.List.init", "kind": "value", "name": "init", "docstrings": [], - "signature": "let init: (int, (. int) => 'a) => t<'a>" + "signature": "let init: (int, int => 'a) => t<'a>" }, { "id": "Js.List.toVector", @@ -9616,7 +9624,7 @@ "kind": "value", "name": "equal", "docstrings": [], - "signature": "let equal: ((. 'a, 'a) => bool, list<'a>, list<'a>) => bool" + "signature": "let equal: (('a, 'a) => bool, list<'a>, list<'a>) => bool" } ] }, @@ -9670,7 +9678,7 @@ "kind": "value", "name": "isSomeValue", "docstrings": [], - "signature": "let isSomeValue: ((. 'a, 'a) => bool, 'a, option<'a>) => bool" + "signature": "let isSomeValue: (('a, 'a) => bool, 'a, option<'a>) => bool" }, { "id": "Js.Option.isNone", @@ -9691,21 +9699,21 @@ "kind": "value", "name": "equal", "docstrings": [], - "signature": "let equal: ((. 'a, 'b) => bool, option<'a>, option<'b>) => bool" + "signature": "let equal: (('a, 'b) => bool, option<'a>, option<'b>) => bool" }, { "id": "Js.Option.andThen", "kind": "value", "name": "andThen", "docstrings": [], - "signature": "let andThen: ((. 'a) => option<'b>, option<'a>) => option<'b>" + "signature": "let andThen: ('a => option<'b>, option<'a>) => option<'b>" }, { "id": "Js.Option.map", "kind": "value", "name": "map", "docstrings": [], - "signature": "let map: ((. 'a) => 'b, option<'a>) => option<'b>" + "signature": "let map: ('a => 'b, option<'a>) => option<'b>" }, { "id": "Js.Option.getWithDefault", @@ -9727,7 +9735,7 @@ "kind": "value", "name": "filter", "docstrings": [], - "signature": "let filter: ((. 'a) => bool, option<'a>) => option<'a>" + "signature": "let filter: ('a => bool, option<'a>) => option<'a>" }, { "id": "Js.Option.firstSome", @@ -10062,7 +10070,7 @@ "kind": "type", "name": "t", "docstrings": [], - "signature": "type t<_> =\\n | Undefined: t\\n | Null: t\\n | Boolean: t\\n | Number: t\\n | String: t\\n | Function: t\\n | Object: t\\n | Symbol: t\\n | BigInt: t" + "signature": "type t<_> =\n | Undefined: t\n | Null: t\n | Boolean: t\n | Number: t\n | String: t\n | Function: t\n | Object: t\n | Symbol: t\n | BigInt: t" }, { "id": "Js.Types.test", @@ -10078,7 +10086,7 @@ "kind": "type", "name": "tagged_t", "docstrings": [], - "signature": "type tagged_t =\\n | JSFalse\\n | JSTrue\\n | JSNull\\n | JSUndefined\\n | JSNumber(float)\\n | JSString(string)\\n | JSFunction(function_val)\\n | JSObject(obj_val)\\n | JSSymbol(symbol)\\n | JSBigInt(bigint_val)" + "signature": "type tagged_t =\n | JSFalse\n | JSTrue\n | JSNull\n | JSUndefined\n | JSNumber(float)\n | JSString(string)\n | JSFunction(function_val)\n | JSObject(obj_val)\n | JSSymbol(symbol)\n | JSBigInt(bigint_val)" }, { "id": "Js.Types.classify", @@ -10772,14 +10780,14 @@ "docstrings": [ "The JSON data structure" ], - "signature": "type t =\\n | Boolean(bool)\\n | Null\\n | String(string)\\n | Number(float)\\n | Object(Js.Dict.t)\\n | Array(array)" + "signature": "type t =\n | Boolean(bool)\n | Null\n | String(string)\n | Number(float)\n | Object(Js.Dict.t)\n | Array(array)" }, { "id": "Js.Json.tagged_t", "kind": "type", "name": "tagged_t", "docstrings": [], - "signature": "type tagged_t =\\n | JSONFalse\\n | JSONTrue\\n | JSONNull\\n | JSONString(string)\\n | JSONNumber(float)\\n | JSONObject(Js_dict.t)\\n | JSONArray(array)" + "signature": "type tagged_t =\n | JSONFalse\n | JSONTrue\n | JSONNull\n | JSONString(string)\n | JSONNumber(float)\n | JSONObject(Js_dict.t)\n | JSONArray(array)" }, { "id": "Js.Json.classify", @@ -11128,7 +11136,7 @@ "kind": "type", "name": "t", "docstrings": [], - "signature": "type t<'a>" + "signature": "type t<'a> = dict<'a>" }, { "id": "Js.Dict.key", @@ -11191,7 +11199,7 @@ "docstrings": [ "Experimental internal function" ], - "signature": "let unsafeDeleteKey: (. t, string) => unit" + "signature": "let unsafeDeleteKey: (t, string) => unit" }, { "id": "Js.Dict.entries", @@ -11236,7 +11244,7 @@ "docstrings": [ "`map(f, dict)` maps `dict` to a new dictionary with the same keys, using the\nfunction `f` to map each value.\n\n## Examples\n\n```rescript\nlet prices = Js.Dict.fromList(list{(\"pen\", 1.00), (\"book\", 5.00), (\"stapler\", 7.00)})\n\nlet discount = (. price) => price *. 0.90\nlet salePrices = Js.Dict.map(discount, prices)\n\nsalePrices == Js.Dict.fromList(list{(\"pen\", 0.90), (\"book\", 4.50), (\"stapler\", 6.30)})\n```" ], - "signature": "let map: ((. 'a) => 'b, t<'a>) => t<'b>" + "signature": "let map: ('a => 'b, t<'a>) => t<'b>" } ] }, @@ -11316,7 +11324,7 @@ "docstrings": [ "Returns a date representing the given date of the given month and year, at zero\nminutes and zero seconds past the given `hours`, in the current time zone.\nFractional parts of arguments are ignored. See [`Date()`\nConstructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/Date)\non MDN. Fractional parts of the arguments are ignored." ], - "signature": "let makeWithYMDH: (\\n ~year: float,\\n ~month: float,\\n ~date: float,\\n ~hours: float,\\n unit,\\n) => t" + "signature": "let makeWithYMDH: (\n ~year: float,\n ~month: float,\n ~date: float,\n ~hours: float,\n unit,\n) => t" }, { "id": "Js.Date.makeWithYMDHM", @@ -11325,7 +11333,7 @@ "docstrings": [ "Returns a date representing the given date of the given month and year, at zero\nseconds past the given time in hours and minutes in the current time zone.\nFractional parts of arguments are ignored. See [`Date()`\nConstructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/Date)\non MDN." ], - "signature": "let makeWithYMDHM: (\\n ~year: float,\\n ~month: float,\\n ~date: float,\\n ~hours: float,\\n ~minutes: float,\\n unit,\\n) => t" + "signature": "let makeWithYMDHM: (\n ~year: float,\n ~month: float,\n ~date: float,\n ~hours: float,\n ~minutes: float,\n unit,\n) => t" }, { "id": "Js.Date.makeWithYMDHMS", @@ -11334,7 +11342,7 @@ "docstrings": [ "Returns a date representing the given date of the given month and year, at the\ngiven time in hours, minutes, and seconds in the current time zone. Fractional\nparts of arguments are ignored. See [`Date()`\nConstructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/Date)\non MDN.\n\n## Examples\n\n```rescript\nJs.Date.makeWithYMDHMS(\n ~year=1973.0,\n ~month=11.0,\n ~date=29.0,\n ~hours=21.0,\n ~minutes=30.0,\n ~seconds=54.321,\n (),\n) == exampleDate\n```" ], - "signature": "let makeWithYMDHMS: (\\n ~year: float,\\n ~month: float,\\n ~date: float,\\n ~hours: float,\\n ~minutes: float,\\n ~seconds: float,\\n unit,\\n) => t" + "signature": "let makeWithYMDHMS: (\n ~year: float,\n ~month: float,\n ~date: float,\n ~hours: float,\n ~minutes: float,\n ~seconds: float,\n unit,\n) => t" }, { "id": "Js.Date.utcWithYM", @@ -11361,7 +11369,7 @@ "docstrings": [ "Returns a float representing the number of milliseconds past the epoch for\nmidnight of the given date of the given month and year, at zero minutes and\nseconds past the given hours in UTC. Fractional parts of arguments are ignored.\nSee\n[`Date.UTC`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/UTC)\non MDN." ], - "signature": "let utcWithYMDH: (\\n ~year: float,\\n ~month: float,\\n ~date: float,\\n ~hours: float,\\n unit,\\n) => float" + "signature": "let utcWithYMDH: (\n ~year: float,\n ~month: float,\n ~date: float,\n ~hours: float,\n unit,\n) => float" }, { "id": "Js.Date.utcWithYMDHM", @@ -11370,7 +11378,7 @@ "docstrings": [ "Returns a float representing the number of milliseconds past the epoch for\nmidnight of the given date of the given month and year, at zero seconds past\nthe given number of minutes past the given hours in UTC. Fractional parts of\narguments are ignored. See\n[`Date.UTC`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/UTC)\non MDN." ], - "signature": "let utcWithYMDHM: (\\n ~year: float,\\n ~month: float,\\n ~date: float,\\n ~hours: float,\\n ~minutes: float,\\n unit,\\n) => float" + "signature": "let utcWithYMDHM: (\n ~year: float,\n ~month: float,\n ~date: float,\n ~hours: float,\n ~minutes: float,\n unit,\n) => float" }, { "id": "Js.Date.utcWithYMDHMS", @@ -11379,7 +11387,7 @@ "docstrings": [ "Returns a float representing the number of milliseconds past the epoch for\nmidnight of the given date of the given month and year, at the given time in\nhours, minutes and seconds in UTC. Fractional parts of arguments are ignored.\n\nSee\n[`Date.UTC`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/UTC)\non MDN." ], - "signature": "let utcWithYMDHMS: (\\n ~year: float,\\n ~month: float,\\n ~date: float,\\n ~hours: float,\\n ~minutes: float,\\n ~seconds: float,\\n unit,\\n) => float" + "signature": "let utcWithYMDHMS: (\n ~year: float,\n ~month: float,\n ~date: float,\n ~hours: float,\n ~minutes: float,\n ~seconds: float,\n unit,\n) => float" }, { "id": "Js.Date.now", @@ -11611,7 +11619,7 @@ "docstrings": [ "Sets the given `Date`’s year, month, and day of month to the values in the\nlabeled arguments according to the current time zone. Returns the number of\nmilliseconds since the epoch of the updated `Date`. *This function modifies the\noriginal `Date`.* See\n[`Date.setFullYear`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setFullYear)\non MDN.\n\n## Examples\n\n```rescript\nlet date1 = Js.Date.fromFloat(123456654321.0) // 29 November 1973 21:30:54.321 GMT\nlet future = Js.Date.setFullYearMD(date1, ~year=1974.0, ~month=0.0, ~date=7.0, ())\ndate1 == Js.Date.fromString(\"1974-01-07T21:30:54.321Z00:00\")\nfuture == Js.Date.getTime(date1)\n```" ], - "signature": "let setFullYearMD: (\\n t,\\n ~year: float,\\n ~month: float,\\n ~date: float,\\n unit,\\n) => float" + "signature": "let setFullYearMD: (\n t,\n ~year: float,\n ~month: float,\n ~date: float,\n unit,\n) => float" }, { "id": "Js.Date.setHours", @@ -11638,7 +11646,7 @@ "docstrings": [ "Sets the given `Date`’s hours, minutes, and seconds to the values in the\nlabeled arguments according to the current time zone. Returns the number of\nmilliseconds since the epoch of the updated `Date`. *This function modifies the\noriginal `Date`.* See\n[`Date.setHours`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours)\non MDN.\n\n## Examples\n\n```rescript\nlet date1 = Js.Date.fromFloat(123456654321.0) // 29 November 1973 21:30:54.321 GMT\nlet futureTime = Js.Date.setHoursMS(date1, ~hours=22.0, ~minutes=46.0, ~seconds=37.0, ())\ndate1 == Js.Date.fromString(\"1973-11-29T22:46:37.321Z00:00\")\nfutureTime == Js.Date.getTime(date1)\n```" ], - "signature": "let setHoursMS: (\\n t,\\n ~hours: float,\\n ~minutes: float,\\n ~seconds: float,\\n unit,\\n) => float" + "signature": "let setHoursMS: (\n t,\n ~hours: float,\n ~minutes: float,\n ~seconds: float,\n unit,\n) => float" }, { "id": "Js.Date.setHoursMSMs", @@ -11647,7 +11655,7 @@ "docstrings": [ "Sets the given `Date`’s hours, minutes, seconds, and milliseconds to the values\nin the labeled arguments according to the current time zone. Returns the number\nof milliseconds since the epoch of the updated `Date`. *This function modifies\nthe original `Date`.* See\n[`Date.setHours`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours)\non MDN.\n\n## Examples\n\n```rescript\nlet date1 = Js.Date.fromFloat(123456654321.0) // 29 November 1973 21:30:54.321 GMT\nlet futureTime = Js.Date.setHoursMSMs(\n date1,\n ~hours=22.0,\n ~minutes=46.0,\n ~seconds=37.0,\n ~milliseconds=494.0,\n (),\n)\ndate1 == Js.Date.fromString(\"1973-11-29T22:46:37.494Z00:00\")\nfutureTime == Js.Date.getTime(date1)\n```" ], - "signature": "let setHoursMSMs: (\\n t,\\n ~hours: float,\\n ~minutes: float,\\n ~seconds: float,\\n ~milliseconds: float,\\n unit,\\n) => float" + "signature": "let setHoursMSMs: (\n t,\n ~hours: float,\n ~minutes: float,\n ~seconds: float,\n ~milliseconds: float,\n unit,\n) => float" }, { "id": "Js.Date.setMilliseconds", @@ -11683,7 +11691,7 @@ "docstrings": [ "Sets the given `Date`’s minutes, seconds, and milliseconds to the values in the\nlabeled arguments according to the current time zone. Returns the number of\nmilliseconds since the epoch of the updated `Date`. *This function modifies the\noriginal `Date`.* See\n[`Date.setMinutes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMinutes)\non MDN.\n\n## Examples\n\n```rescript\nlet date1 = Js.Date.fromFloat(123456654321.0) // 29 November 1973 21:30:54.321 GMT\nlet futureTime = Js.Date.setMinutesSMs(\n date1,\n ~minutes=34.0,\n ~seconds=56.0,\n ~milliseconds=789.0,\n (),\n)\ndate1 == Js.Date.fromString(\"1973-11-29T21:34:56.789Z00:00\")\nfutureTime == Js.Date.getTime(date1)\n```" ], - "signature": "let setMinutesSMs: (\\n t,\\n ~minutes: float,\\n ~seconds: float,\\n ~milliseconds: float,\\n unit,\\n) => float" + "signature": "let setMinutesSMs: (\n t,\n ~minutes: float,\n ~seconds: float,\n ~milliseconds: float,\n unit,\n) => float" }, { "id": "Js.Date.setMonth", @@ -11764,7 +11772,7 @@ "docstrings": [ "Sets the given `Date`’s year, month, and day of month to the values in the\nlabeled arguments according to UTC. Returns the number of milliseconds since\nthe epoch of the updated `Date`. *This function modifies the original `Date`.*\nSee\n[`Date.setUTCFullYear`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCFullYear)\non MDN.\n\n## Examples\n\n```rescript\nlet date1 = Js.Date.fromFloat(123456654321.0) // 29 November 1973 21:30:54.321 GMT\nlet future = Js.Date.setUTCFullYearMD(date1, ~year=1974.0, ~month=0.0, ~date=7.0, ())\ndate1 == Js.Date.fromString(\"1974-01-07T21:30:54.321Z00:00\")\nfuture == Js.Date.getTime(date1)\n```" ], - "signature": "let setUTCFullYearMD: (\\n t,\\n ~year: float,\\n ~month: float,\\n ~date: float,\\n unit,\\n) => float" + "signature": "let setUTCFullYearMD: (\n t,\n ~year: float,\n ~month: float,\n ~date: float,\n unit,\n) => float" }, { "id": "Js.Date.setUTCHours", @@ -11791,7 +11799,7 @@ "docstrings": [ "Sets the given `Date`’s hours, minutes, and seconds to the values in the\nlabeled arguments according to UTC. Returns the number of milliseconds since\nthe epoch of the updated `Date`. *This function modifies the original `Date`.*\n\nSee\n[`Date.setUTCHours`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCHours)\non MDN.\n\n## Examples\n\n```rescript\nlet date1 = Js.Date.fromFloat(123456654321.0) // 29 November 1973 21:30:54.321 GMT\nlet futureTime = Js.Date.setUTCHoursMS(date1, ~hours=22.0, ~minutes=46.0, ~seconds=37.0, ())\ndate1 == Js.Date.fromString(\"1973-11-29T22:46:37.321Z00:00\")\nfutureTime == Js.Date.getTime(date1)\n```" ], - "signature": "let setUTCHoursMS: (\\n t,\\n ~hours: float,\\n ~minutes: float,\\n ~seconds: float,\\n unit,\\n) => float" + "signature": "let setUTCHoursMS: (\n t,\n ~hours: float,\n ~minutes: float,\n ~seconds: float,\n unit,\n) => float" }, { "id": "Js.Date.setUTCHoursMSMs", @@ -11800,7 +11808,7 @@ "docstrings": [ "Sets the given `Date`’s hours, minutes, seconds, and milliseconds to the values\nin the labeled arguments according to UTC. Returns the number of milliseconds\nsince the epoch of the updated `Date`. *This function modifies the original\n`Date`.* See\n[`Date.setUTCHours`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCHours)\non MDN.\n\n## Examples\n\n```rescript\nlet date1 = Js.Date.fromFloat(123456654321.0) // 29 November 1973 21:30:54.321 GMT\nlet futureTime = Js.Date.setUTCHoursMSMs(\n date1,\n ~hours=22.0,\n ~minutes=46.0,\n ~seconds=37.0,\n ~milliseconds=494.0,\n (),\n)\ndate1 == Js.Date.fromString(\"1973-11-29T22:46:37.494Z00:00\")\nfutureTime == Js.Date.getTime(date1)\n```" ], - "signature": "let setUTCHoursMSMs: (\\n t,\\n ~hours: float,\\n ~minutes: float,\\n ~seconds: float,\\n ~milliseconds: float,\\n unit,\\n) => float" + "signature": "let setUTCHoursMSMs: (\n t,\n ~hours: float,\n ~minutes: float,\n ~seconds: float,\n ~milliseconds: float,\n unit,\n) => float" }, { "id": "Js.Date.setUTCMilliseconds", @@ -11836,7 +11844,7 @@ "docstrings": [ "Sets the given `Date`’s minutes, seconds, and milliseconds to the values in the\nlabeled arguments according to UTC. Returns the number of milliseconds since\nthe epoch of the updated `Date`. *This function modifies the original `Date`.*\nSee\n[`Date.setUTCMinutes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMinutes)\non MDN.\n\n## Examples\n\n```rescript\nlet date1 = Js.Date.fromFloat(123456654321.0) // 29 November 1973 21:30:54.321 GMT\nlet futureTime = Js.Date.setUTCMinutesSMs(\n date1,\n ~minutes=34.0,\n ~seconds=56.0,\n ~milliseconds=789.0,\n (),\n)\ndate1 == Js.Date.fromString(\"1973-11-29T21:34:56.789Z00:00\")\nfutureTime == Js.Date.getTime(date1)\n```" ], - "signature": "let setUTCMinutesSMs: (\\n t,\\n ~minutes: float,\\n ~seconds: float,\\n ~milliseconds: float,\\n unit,\\n) => float" + "signature": "let setUTCMinutesSMs: (\n t,\n ~minutes: float,\n ~seconds: float,\n ~milliseconds: float,\n unit,\n) => float" }, { "id": "Js.Date.setUTCMonth", @@ -12034,7 +12042,7 @@ "kind": "value", "name": "make", "docstrings": [], - "signature": "let make: (\\n (\\n ~resolve: (. 'a) => unit,\\n ~reject: (. exn) => unit,\\n ) => unit,\\n) => promise<'a>" + "signature": "let make: (\n (~resolve: 'a => unit, ~reject: exn => unit) => unit,\n) => promise<'a>" }, { "id": "Js.Promise2.resolve", @@ -12069,28 +12077,28 @@ "kind": "value", "name": "all3", "docstrings": [], - "signature": "let all3: (\\n (promise<'a0>, promise<'a1>, promise<'a2>),\\n) => promise<('a0, 'a1, 'a2)>" + "signature": "let all3: (\n (promise<'a0>, promise<'a1>, promise<'a2>),\n) => promise<('a0, 'a1, 'a2)>" }, { "id": "Js.Promise2.all4", "kind": "value", "name": "all4", "docstrings": [], - "signature": "let all4: (\\n (promise<'a0>, promise<'a1>, promise<'a2>, promise<'a3>),\\n) => promise<('a0, 'a1, 'a2, 'a3)>" + "signature": "let all4: (\n (promise<'a0>, promise<'a1>, promise<'a2>, promise<'a3>),\n) => promise<('a0, 'a1, 'a2, 'a3)>" }, { "id": "Js.Promise2.all5", "kind": "value", "name": "all5", "docstrings": [], - "signature": "let all5: (\\n (\\n promise<'a0>,\\n promise<'a1>,\\n promise<'a2>,\\n promise<'a3>,\\n promise<'a4>,\\n ),\\n) => promise<('a0, 'a1, 'a2, 'a3, 'a4)>" + "signature": "let all5: (\n (\n promise<'a0>,\n promise<'a1>,\n promise<'a2>,\n promise<'a3>,\n promise<'a4>,\n ),\n) => promise<('a0, 'a1, 'a2, 'a3, 'a4)>" }, { "id": "Js.Promise2.all6", "kind": "value", "name": "all6", "docstrings": [], - "signature": "let all6: (\\n (\\n promise<'a0>,\\n promise<'a1>,\\n promise<'a2>,\\n promise<'a3>,\\n promise<'a4>,\\n promise<'a5>,\\n ),\\n) => promise<('a0, 'a1, 'a2, 'a3, 'a4, 'a5)>" + "signature": "let all6: (\n (\n promise<'a0>,\n promise<'a1>,\n promise<'a2>,\n promise<'a3>,\n promise<'a4>,\n promise<'a5>,\n ),\n) => promise<('a0, 'a1, 'a2, 'a3, 'a4, 'a5)>" }, { "id": "Js.Promise2.race", @@ -12142,7 +12150,7 @@ "kind": "value", "name": "make", "docstrings": [], - "signature": "let make: (\\n (\\n ~resolve: (. 'a) => unit,\\n ~reject: (. exn) => unit,\\n ) => unit,\\n) => promise<'a>" + "signature": "let make: (\n (~resolve: 'a => unit, ~reject: exn => unit) => unit,\n) => promise<'a>" }, { "id": "Js.Promise.resolve", @@ -12177,28 +12185,28 @@ "kind": "value", "name": "all3", "docstrings": [], - "signature": "let all3: (\\n (promise<'a0>, promise<'a1>, promise<'a2>),\\n) => promise<('a0, 'a1, 'a2)>" + "signature": "let all3: (\n (promise<'a0>, promise<'a1>, promise<'a2>),\n) => promise<('a0, 'a1, 'a2)>" }, { "id": "Js.Promise.all4", "kind": "value", "name": "all4", "docstrings": [], - "signature": "let all4: (\\n (promise<'a0>, promise<'a1>, promise<'a2>, promise<'a3>),\\n) => promise<('a0, 'a1, 'a2, 'a3)>" + "signature": "let all4: (\n (promise<'a0>, promise<'a1>, promise<'a2>, promise<'a3>),\n) => promise<('a0, 'a1, 'a2, 'a3)>" }, { "id": "Js.Promise.all5", "kind": "value", "name": "all5", "docstrings": [], - "signature": "let all5: (\\n (\\n promise<'a0>,\\n promise<'a1>,\\n promise<'a2>,\\n promise<'a3>,\\n promise<'a4>,\\n ),\\n) => promise<('a0, 'a1, 'a2, 'a3, 'a4)>" + "signature": "let all5: (\n (\n promise<'a0>,\n promise<'a1>,\n promise<'a2>,\n promise<'a3>,\n promise<'a4>,\n ),\n) => promise<('a0, 'a1, 'a2, 'a3, 'a4)>" }, { "id": "Js.Promise.all6", "kind": "value", "name": "all6", "docstrings": [], - "signature": "let all6: (\\n (\\n promise<'a0>,\\n promise<'a1>,\\n promise<'a2>,\\n promise<'a3>,\\n promise<'a4>,\\n promise<'a5>,\\n ),\\n) => promise<('a0, 'a1, 'a2, 'a3, 'a4, 'a5)>" + "signature": "let all6: (\n (\n promise<'a0>,\n promise<'a1>,\n promise<'a2>,\n promise<'a3>,\n promise<'a4>,\n promise<'a5>,\n ),\n) => promise<('a0, 'a1, 'a2, 'a3, 'a4, 'a5)>" }, { "id": "Js.Promise.race", @@ -14469,7 +14477,7 @@ "docstrings": [ "Maps the contained value using the given function.\n\nIf `Js.null_undefined<'a>` contains a value, that value is unwrapped, mapped to\na `'b` using the given function `a' => 'b`, then wrapped back up and returned\nas `Js.null_undefined<'b>`.\n\n## Examples\n\n```rescript\nlet maybeGreetWorld = (maybeGreeting: Js.null_undefined) =>\n Js.Null_undefined.bind(maybeGreeting, (. greeting) => greeting ++ \" world!\")\n```" ], - "signature": "let bind: (t<'a>, (. 'a) => 'b) => t<'b>" + "signature": "let bind: (t<'a>, 'a => 'b) => t<'b>" }, { "id": "Js.Null_undefined.iter", @@ -14478,7 +14486,7 @@ "docstrings": [ "Iterates over the contained value with the given function.\nIf `Js.null_undefined<'a>` contains a value, that value is unwrapped and applied to the given function.\n\n## Examples\n\n```rescript\nlet maybeSay = (maybeMessage: Js.null_undefined) =>\n Js.Null_undefined.iter(maybeMessage, (. message) => Js.log(message))\n```" ], - "signature": "let iter: (t<'a>, (. 'a) => unit) => unit" + "signature": "let iter: (t<'a>, 'a => unit) => unit" }, { "id": "Js.Null_undefined.fromOption", @@ -14576,7 +14584,7 @@ "docstrings": [ "Maps the contained value using the given function.\n\nIf `Js.null_undefined<'a>` contains a value, that value is unwrapped, mapped to\na `'b` using the given function `a' => 'b`, then wrapped back up and returned\nas `Js.null_undefined<'b>`.\n\n## Examples\n\n```rescript\nlet maybeGreetWorld = (maybeGreeting: Js.null_undefined) =>\n Js.Null_undefined.bind(maybeGreeting, (. greeting) => greeting ++ \" world!\")\n```" ], - "signature": "let bind: (t<'a>, (. 'a) => 'b) => t<'b>" + "signature": "let bind: (t<'a>, 'a => 'b) => t<'b>" }, { "id": "Js.Nullable.iter", @@ -14585,7 +14593,7 @@ "docstrings": [ "Iterates over the contained value with the given function.\nIf `Js.null_undefined<'a>` contains a value, that value is unwrapped and applied to the given function.\n\n## Examples\n\n```rescript\nlet maybeSay = (maybeMessage: Js.null_undefined) =>\n Js.Null_undefined.iter(maybeMessage, (. message) => Js.log(message))\n```" ], - "signature": "let iter: (t<'a>, (. 'a) => unit) => unit" + "signature": "let iter: (t<'a>, 'a => unit) => unit" }, { "id": "Js.Nullable.fromOption", @@ -14698,7 +14706,7 @@ "docstrings": [ "Maps the contained value using the given function.\nIf `Js.undefined<'a>` contains a value, that value is unwrapped, mapped to a\n`'b` using the given function `a' => 'b`, then wrapped back up and returned as\n`Js.undefined<'b>`.\n\n## Examples\n\n```rescript\nlet maybeGreetWorld = (maybeGreeting: Js.undefined) =>\n Js.Undefined.bind(maybeGreeting, (. greeting) => greeting ++ \" world!\")\n```" ], - "signature": "let bind: (t<'a>, (. 'a) => 'b) => t<'b>" + "signature": "let bind: (t<'a>, 'a => 'b) => t<'b>" }, { "id": "Js.Undefined.iter", @@ -14707,7 +14715,7 @@ "docstrings": [ "Iterates over the contained value with the given function. If\n`Js.undefined<'a>` contains a value, that value is unwrapped and applied to the\ngiven function.\n\n## Examples\n\n```rescript\nlet maybeSay = (maybeMessage: Js.undefined) =>\n Js.Undefined.iter(maybeMessage, (. message) => Js.log(message))\n```" ], - "signature": "let iter: (t<'a>, (. 'a) => unit) => unit" + "signature": "let iter: (t<'a>, 'a => unit) => unit" }, { "id": "Js.Undefined.fromOption", @@ -14811,7 +14819,7 @@ "docstrings": [ "Maps the contained value using the given function.\n\nIf `Js.null<'a>` contains a value, that value is unwrapped, mapped to a `'b`\nusing the given function `'a => 'b`, then wrapped back up and returned as\n`Js.null<'b>`.\n\n## Examples\n\n```rescript\nlet maybeGreetWorld = (maybeGreeting: Js.null) =>\n Js.Null.bind(maybeGreeting, (. greeting) => greeting ++ \" world!\")\n```" ], - "signature": "let bind: (t<'a>, (. 'a) => 'b) => t<'b>" + "signature": "let bind: (t<'a>, 'a => 'b) => t<'b>" }, { "id": "Js.Null.iter", @@ -14820,7 +14828,7 @@ "docstrings": [ "Iterates over the contained value with the given function.\nIf `Js.null<'a>` contains a value, that value is unwrapped and applied to the given function.\n\n## Examples\n\n```rescript\nlet maybeSay = (maybeMessage: Js.null) =>\n Js.Null.iter(maybeMessage, (. message) => Js.log(message))\n```" ], - "signature": "let iter: (t<'a>, (. 'a) => unit) => unit" + "signature": "let iter: (t<'a>, 'a => unit) => unit" }, { "id": "Js.Null.fromOption", diff --git a/data/api/latest/toc_tree.json b/data/api/latest/toc_tree.json index bfc359e38..3d5b32e5e 100644 --- a/data/api/latest/toc_tree.json +++ b/data/api/latest/toc_tree.json @@ -1 +1 @@ -{"js":{"name":"Js","path":["js"],"children":[{"name":"WeakMap","path":["js","weakmap"],"children":[]},{"name":"Map","path":["js","map"],"children":[]},{"name":"WeakSet","path":["js","weakset"],"children":[]},{"name":"Set","path":["js","set"],"children":[]},{"name":"Console","path":["js","console"],"children":[]},{"name":"Vector","path":["js","vector"],"children":[]},{"name":"List","path":["js","list"],"children":[]},{"name":"Result","path":["js","result"],"children":[]},{"name":"Option","path":["js","option"],"children":[]},{"name":"Blob","path":["js","blob"],"children":[]},{"name":"File","path":["js","file"],"children":[]},{"name":"Bigint","path":["js","bigint"],"children":[]},{"name":"Int","path":["js","int"],"children":[]},{"name":"Float","path":["js","float"],"children":[]},{"name":"Types","path":["js","types"],"children":[]},{"name":"TypedArray2","path":["js","typedarray2"],"children":[{"name":"DataView","path":["js","typedarray2","dataview"],"children":[]},{"name":"Float64Array","path":["js","typedarray2","float64array"],"children":[]},{"name":"Float32Array","path":["js","typedarray2","float32array"],"children":[]},{"name":"Uint32Array","path":["js","typedarray2","uint32array"],"children":[]},{"name":"Int32Array","path":["js","typedarray2","int32array"],"children":[]},{"name":"Uint16Array","path":["js","typedarray2","uint16array"],"children":[]},{"name":"Int16Array","path":["js","typedarray2","int16array"],"children":[]},{"name":"Uint8ClampedArray","path":["js","typedarray2","uint8clampedarray"],"children":[]},{"name":"Uint8Array","path":["js","typedarray2","uint8array"],"children":[]},{"name":"Int8Array","path":["js","typedarray2","int8array"],"children":[]},{"name":"ArrayBuffer","path":["js","typedarray2","arraybuffer"],"children":[]}]},{"name":"Typed_array","path":["js","typed_array"],"children":[{"name":"DataView","path":["js","typed_array","dataview"],"children":[]},{"name":"Float64_array","path":["js","typed_array","float64_array"],"children":[]},{"name":"Float64Array","path":["js","typed_array","float64array"],"children":[]},{"name":"Float32_array","path":["js","typed_array","float32_array"],"children":[]},{"name":"Float32Array","path":["js","typed_array","float32array"],"children":[]},{"name":"Uint32Array","path":["js","typed_array","uint32array"],"children":[]},{"name":"Int32_array","path":["js","typed_array","int32_array"],"children":[]},{"name":"Int32Array","path":["js","typed_array","int32array"],"children":[]},{"name":"Uint16Array","path":["js","typed_array","uint16array"],"children":[]},{"name":"Int16Array","path":["js","typed_array","int16array"],"children":[]},{"name":"Uint8ClampedArray","path":["js","typed_array","uint8clampedarray"],"children":[]},{"name":"Uint8Array","path":["js","typed_array","uint8array"],"children":[]},{"name":"Int8Array","path":["js","typed_array","int8array"],"children":[]},{"name":"S","path":["js","typed_array","s"],"children":[]},{"name":"ArrayBuffer","path":["js","typed_array","arraybuffer"],"children":[]},{"name":"Type","path":["js","typed_array","type"],"children":[]}]},{"name":"Obj","path":["js","obj"],"children":[]},{"name":"Math","path":["js","math"],"children":[]},{"name":"Json","path":["js","json"],"children":[{"name":"Kind","path":["js","json","kind"],"children":[]}]},{"name":"Global","path":["js","global"],"children":[]},{"name":"Dict","path":["js","dict"],"children":[]},{"name":"Date","path":["js","date"],"children":[]},{"name":"Promise2","path":["js","promise2"],"children":[]},{"name":"Promise","path":["js","promise"],"children":[]},{"name":"Re","path":["js","re"],"children":[]},{"name":"String2","path":["js","string2"],"children":[]},{"name":"String","path":["js","string"],"children":[]},{"name":"Array2","path":["js","array2"],"children":[]},{"name":"Array","path":["js","array"],"children":[]},{"name":"Exn","path":["js","exn"],"children":[]},{"name":"Null_undefined","path":["js","null_undefined"],"children":[]},{"name":"Nullable","path":["js","nullable"],"children":[]},{"name":"Undefined","path":["js","undefined"],"children":[]},{"name":"Null","path":["js","null"],"children":[]}]},"belt":{"name":"Belt","path":["belt"],"children":[{"name":"Float","path":["belt","float"],"children":[]},{"name":"Int","path":["belt","int"],"children":[]},{"name":"Result","path":["belt","result"],"children":[]},{"name":"Option","path":["belt","option"],"children":[]},{"name":"HashMap","path":["belt","hashmap"],"children":[{"name":"String","path":["belt","hashmap","string"],"children":[]},{"name":"Int","path":["belt","hashmap","int"],"children":[]}]},{"name":"HashSet","path":["belt","hashset"],"children":[{"name":"String","path":["belt","hashset","string"],"children":[]},{"name":"Int","path":["belt","hashset","int"],"children":[]}]},{"name":"MutableMap","path":["belt","mutablemap"],"children":[{"name":"String","path":["belt","mutablemap","string"],"children":[]},{"name":"Int","path":["belt","mutablemap","int"],"children":[]}]},{"name":"MutableSet","path":["belt","mutableset"],"children":[{"name":"String","path":["belt","mutableset","string"],"children":[]},{"name":"Int","path":["belt","mutableset","int"],"children":[]}]},{"name":"Map","path":["belt","map"],"children":[{"name":"Dict","path":["belt","map","dict"],"children":[]},{"name":"String","path":["belt","map","string"],"children":[]},{"name":"Int","path":["belt","map","int"],"children":[]}]},{"name":"Set","path":["belt","set"],"children":[{"name":"Dict","path":["belt","set","dict"],"children":[]},{"name":"String","path":["belt","set","string"],"children":[]},{"name":"Int","path":["belt","set","int"],"children":[]}]},{"name":"Range","path":["belt","range"],"children":[]},{"name":"List","path":["belt","list"],"children":[]},{"name":"MutableStack","path":["belt","mutablestack"],"children":[]},{"name":"MutableQueue","path":["belt","mutablequeue"],"children":[]},{"name":"SortArray","path":["belt","sortarray"],"children":[{"name":"String","path":["belt","sortarray","string"],"children":[]},{"name":"Int","path":["belt","sortarray","int"],"children":[]}]},{"name":"Array","path":["belt","array"],"children":[]},{"name":"Id","path":["belt","id"],"children":[{"name":"MakeHashable","path":["belt","id","makehashable"],"children":[]},{"name":"MakeHashableU","path":["belt","id","makehashableu"],"children":[]},{"name":"MakeComparable","path":["belt","id","makecomparable"],"children":[]},{"name":"MakeComparableU","path":["belt","id","makecomparableu"],"children":[]}]}]},"dom":{"name":"Dom","path":["dom"],"children":[{"name":"Storage2","path":["dom","storage2"],"children":[]},{"name":"Storage","path":["dom","storage"],"children":[]}]},"core":{"name":"Core","path":["core"],"children":[{"name":"Result","path":["core","result"],"children":[]},{"name":"List","path":["core","list"],"children":[]},{"name":"Option","path":["core","option"],"children":[]},{"name":"Exn","path":["core","exn"],"children":[]},{"name":"Re","path":["core","re"],"children":[{"name":"Result","path":["core","re","result"],"children":[]}]},{"name":"Internal","path":["core","internal"],"children":[]},{"name":"MapperRt","path":["core","mapperrt"],"children":[]},{"name":"Intl","path":["core","intl"],"children":[{"name":"RelativeTimeFormat","path":["core","intl","relativetimeformat"],"children":[]},{"name":"PluralRules","path":["core","intl","pluralrules"],"children":[]},{"name":"NumberFormat","path":["core","intl","numberformat"],"children":[]},{"name":"Locale","path":["core","intl","locale"],"children":[]},{"name":"DateTimeFormat","path":["core","intl","datetimeformat"],"children":[]},{"name":"Collator","path":["core","intl","collator"],"children":[]}]},{"name":"BigUint64Array","path":["core","biguint64array"],"children":[{"name":"Constants","path":["core","biguint64array","constants"],"children":[]}]},{"name":"BigInt64Array","path":["core","bigint64array"],"children":[{"name":"Constants","path":["core","bigint64array","constants"],"children":[]}]},{"name":"Uint8ClampedArray","path":["core","uint8clampedarray"],"children":[{"name":"Constants","path":["core","uint8clampedarray","constants"],"children":[]}]},{"name":"Uint32Array","path":["core","uint32array"],"children":[{"name":"Constants","path":["core","uint32array","constants"],"children":[]}]},{"name":"Uint16Array","path":["core","uint16array"],"children":[{"name":"Constants","path":["core","uint16array","constants"],"children":[]}]},{"name":"Uint8Array","path":["core","uint8array"],"children":[{"name":"Constants","path":["core","uint8array","constants"],"children":[]}]},{"name":"Int32Array","path":["core","int32array"],"children":[{"name":"Constants","path":["core","int32array","constants"],"children":[]}]},{"name":"Int16Array","path":["core","int16array"],"children":[{"name":"Constants","path":["core","int16array","constants"],"children":[]}]},{"name":"Int8Array","path":["core","int8array"],"children":[{"name":"Constants","path":["core","int8array","constants"],"children":[]}]},{"name":"Float64Array","path":["core","float64array"],"children":[{"name":"Constants","path":["core","float64array","constants"],"children":[]}]},{"name":"Float32Array","path":["core","float32array"],"children":[{"name":"Constants","path":["core","float32array","constants"],"children":[]}]},{"name":"TypedArray","path":["core","typedarray"],"children":[]},{"name":"ArrayBuffer","path":["core","arraybuffer"],"children":[]},{"name":"WeakSet","path":["core","weakset"],"children":[]},{"name":"Set","path":["core","set"],"children":[]},{"name":"WeakMap","path":["core","weakmap"],"children":[]},{"name":"Map","path":["core","map"],"children":[]},{"name":"AsyncIterator","path":["core","asynciterator"],"children":[]},{"name":"Iterator","path":["core","iterator"],"children":[]},{"name":"JSON","path":["core","json"],"children":[{"name":"Decode","path":["core","json","decode"],"children":[]},{"name":"Encode","path":["core","json","encode"],"children":[]},{"name":"Classify","path":["core","json","classify"],"children":[]}]},{"name":"Type","path":["core","type"],"children":[{"name":"Classify","path":["core","type","classify"],"children":[]}]},{"name":"Symbol","path":["core","symbol"],"children":[]},{"name":"String","path":["core","string"],"children":[]},{"name":"RegExp","path":["core","regexp"],"children":[{"name":"Result","path":["core","regexp","result"],"children":[]}]},{"name":"Promise","path":["core","promise"],"children":[]},{"name":"Ordering","path":["core","ordering"],"children":[]},{"name":"Object","path":["core","object"],"children":[]},{"name":"Nullable","path":["core","nullable"],"children":[]},{"name":"Null","path":["core","null"],"children":[]},{"name":"Math","path":["core","math"],"children":[{"name":"Int","path":["core","math","int"],"children":[]},{"name":"Constants","path":["core","math","constants"],"children":[]}]},{"name":"BigInt","path":["core","bigint"],"children":[]},{"name":"Int","path":["core","int"],"children":[{"name":"Constants","path":["core","int","constants"],"children":[]}]},{"name":"Float","path":["core","float"],"children":[{"name":"Constants","path":["core","float","constants"],"children":[]}]},{"name":"Error","path":["core","error"],"children":[{"name":"URIError","path":["core","error","urierror"],"children":[]},{"name":"TypeError","path":["core","error","typeerror"],"children":[]},{"name":"SyntaxError","path":["core","error","syntaxerror"],"children":[]},{"name":"ReferenceError","path":["core","error","referenceerror"],"children":[]},{"name":"RangeError","path":["core","error","rangeerror"],"children":[]},{"name":"EvalError","path":["core","error","evalerror"],"children":[]}]},{"name":"Dict","path":["core","dict"],"children":[]},{"name":"Date","path":["core","date"],"children":[{"name":"UTC","path":["core","date","utc"],"children":[]}]},{"name":"DataView","path":["core","dataview"],"children":[]},{"name":"Console","path":["core","console"],"children":[]},{"name":"Array","path":["core","array"],"children":[]}]}} \ No newline at end of file +{"js":{"name":"Js","path":["js"],"children":[{"name":"WeakMap","path":["js","weakmap"],"children":[]},{"name":"Map","path":["js","map"],"children":[]},{"name":"WeakSet","path":["js","weakset"],"children":[]},{"name":"Set","path":["js","set"],"children":[]},{"name":"Console","path":["js","console"],"children":[]},{"name":"Vector","path":["js","vector"],"children":[]},{"name":"List","path":["js","list"],"children":[]},{"name":"Result","path":["js","result"],"children":[]},{"name":"Option","path":["js","option"],"children":[]},{"name":"Blob","path":["js","blob"],"children":[]},{"name":"File","path":["js","file"],"children":[]},{"name":"Bigint","path":["js","bigint"],"children":[]},{"name":"Int","path":["js","int"],"children":[]},{"name":"Float","path":["js","float"],"children":[]},{"name":"Types","path":["js","types"],"children":[]},{"name":"TypedArray2","path":["js","typedarray2"],"children":[{"name":"DataView","path":["js","typedarray2","dataview"],"children":[]},{"name":"Float64Array","path":["js","typedarray2","float64array"],"children":[]},{"name":"Float32Array","path":["js","typedarray2","float32array"],"children":[]},{"name":"Uint32Array","path":["js","typedarray2","uint32array"],"children":[]},{"name":"Int32Array","path":["js","typedarray2","int32array"],"children":[]},{"name":"Uint16Array","path":["js","typedarray2","uint16array"],"children":[]},{"name":"Int16Array","path":["js","typedarray2","int16array"],"children":[]},{"name":"Uint8ClampedArray","path":["js","typedarray2","uint8clampedarray"],"children":[]},{"name":"Uint8Array","path":["js","typedarray2","uint8array"],"children":[]},{"name":"Int8Array","path":["js","typedarray2","int8array"],"children":[]},{"name":"ArrayBuffer","path":["js","typedarray2","arraybuffer"],"children":[]}]},{"name":"Typed_array","path":["js","typed_array"],"children":[{"name":"DataView","path":["js","typed_array","dataview"],"children":[]},{"name":"Float64_array","path":["js","typed_array","float64_array"],"children":[]},{"name":"Float64Array","path":["js","typed_array","float64array"],"children":[]},{"name":"Float32_array","path":["js","typed_array","float32_array"],"children":[]},{"name":"Float32Array","path":["js","typed_array","float32array"],"children":[]},{"name":"Uint32Array","path":["js","typed_array","uint32array"],"children":[]},{"name":"Int32_array","path":["js","typed_array","int32_array"],"children":[]},{"name":"Int32Array","path":["js","typed_array","int32array"],"children":[]},{"name":"Uint16Array","path":["js","typed_array","uint16array"],"children":[]},{"name":"Int16Array","path":["js","typed_array","int16array"],"children":[]},{"name":"Uint8ClampedArray","path":["js","typed_array","uint8clampedarray"],"children":[]},{"name":"Uint8Array","path":["js","typed_array","uint8array"],"children":[]},{"name":"Int8Array","path":["js","typed_array","int8array"],"children":[]},{"name":"S","path":["js","typed_array","s"],"children":[]},{"name":"ArrayBuffer","path":["js","typed_array","arraybuffer"],"children":[]},{"name":"Type","path":["js","typed_array","type"],"children":[]}]},{"name":"Obj","path":["js","obj"],"children":[]},{"name":"Math","path":["js","math"],"children":[]},{"name":"Json","path":["js","json"],"children":[{"name":"Kind","path":["js","json","kind"],"children":[]}]},{"name":"Global","path":["js","global"],"children":[]},{"name":"Dict","path":["js","dict"],"children":[]},{"name":"Date","path":["js","date"],"children":[]},{"name":"Promise2","path":["js","promise2"],"children":[]},{"name":"Promise","path":["js","promise"],"children":[]},{"name":"Re","path":["js","re"],"children":[]},{"name":"String2","path":["js","string2"],"children":[]},{"name":"String","path":["js","string"],"children":[]},{"name":"Array2","path":["js","array2"],"children":[]},{"name":"Array","path":["js","array"],"children":[]},{"name":"Exn","path":["js","exn"],"children":[]},{"name":"Null_undefined","path":["js","null_undefined"],"children":[]},{"name":"Nullable","path":["js","nullable"],"children":[]},{"name":"Undefined","path":["js","undefined"],"children":[]},{"name":"Null","path":["js","null"],"children":[]}]},"belt":{"name":"Belt","path":["belt"],"children":[{"name":"Float","path":["belt","float"],"children":[]},{"name":"Int","path":["belt","int"],"children":[]},{"name":"Result","path":["belt","result"],"children":[]},{"name":"Option","path":["belt","option"],"children":[]},{"name":"HashMap","path":["belt","hashmap"],"children":[{"name":"String","path":["belt","hashmap","string"],"children":[]},{"name":"Int","path":["belt","hashmap","int"],"children":[]}]},{"name":"HashSet","path":["belt","hashset"],"children":[{"name":"String","path":["belt","hashset","string"],"children":[]},{"name":"Int","path":["belt","hashset","int"],"children":[]}]},{"name":"MutableMap","path":["belt","mutablemap"],"children":[{"name":"String","path":["belt","mutablemap","string"],"children":[]},{"name":"Int","path":["belt","mutablemap","int"],"children":[]}]},{"name":"MutableSet","path":["belt","mutableset"],"children":[{"name":"String","path":["belt","mutableset","string"],"children":[]},{"name":"Int","path":["belt","mutableset","int"],"children":[]}]},{"name":"Map","path":["belt","map"],"children":[{"name":"Dict","path":["belt","map","dict"],"children":[]},{"name":"String","path":["belt","map","string"],"children":[]},{"name":"Int","path":["belt","map","int"],"children":[]}]},{"name":"Set","path":["belt","set"],"children":[{"name":"Dict","path":["belt","set","dict"],"children":[]},{"name":"String","path":["belt","set","string"],"children":[]},{"name":"Int","path":["belt","set","int"],"children":[]}]},{"name":"Range","path":["belt","range"],"children":[]},{"name":"List","path":["belt","list"],"children":[]},{"name":"MutableStack","path":["belt","mutablestack"],"children":[]},{"name":"MutableQueue","path":["belt","mutablequeue"],"children":[]},{"name":"SortArray","path":["belt","sortarray"],"children":[{"name":"String","path":["belt","sortarray","string"],"children":[]},{"name":"Int","path":["belt","sortarray","int"],"children":[]}]},{"name":"Array","path":["belt","array"],"children":[]},{"name":"Id","path":["belt","id"],"children":[{"name":"MakeHashable","path":["belt","id","makehashable"],"children":[]},{"name":"MakeHashableU","path":["belt","id","makehashableu"],"children":[]},{"name":"MakeComparable","path":["belt","id","makecomparable"],"children":[]},{"name":"MakeComparableU","path":["belt","id","makecomparableu"],"children":[]}]}]},"dom":{"name":"Dom","path":["dom"],"children":[{"name":"Storage2","path":["dom","storage2"],"children":[]},{"name":"Storage","path":["dom","storage"],"children":[]}]},"core":{"name":"Core","path":["core"],"children":[{"name":"Result","path":["core","result"],"children":[]},{"name":"List","path":["core","list"],"children":[]},{"name":"Option","path":["core","option"],"children":[]},{"name":"Exn","path":["core","exn"],"children":[]},{"name":"Re","path":["core","re"],"children":[{"name":"Result","path":["core","re","result"],"children":[]}]},{"name":"Internal","path":["core","internal"],"children":[]},{"name":"MapperRt","path":["core","mapperrt"],"children":[]},{"name":"Intl","path":["core","intl"],"children":[{"name":"Segments","path":["core","intl","segments"],"children":[]},{"name":"Segmenter","path":["core","intl","segmenter"],"children":[]},{"name":"RelativeTimeFormat","path":["core","intl","relativetimeformat"],"children":[]},{"name":"PluralRules","path":["core","intl","pluralrules"],"children":[]},{"name":"NumberFormat","path":["core","intl","numberformat"],"children":[{"name":"Grouping","path":["core","intl","numberformat","grouping"],"children":[]}]},{"name":"Locale","path":["core","intl","locale"],"children":[]},{"name":"ListFormat","path":["core","intl","listformat"],"children":[]},{"name":"DateTimeFormat","path":["core","intl","datetimeformat"],"children":[]},{"name":"Collator","path":["core","intl","collator"],"children":[]}]},{"name":"BigUint64Array","path":["core","biguint64array"],"children":[{"name":"Constants","path":["core","biguint64array","constants"],"children":[]}]},{"name":"BigInt64Array","path":["core","bigint64array"],"children":[{"name":"Constants","path":["core","bigint64array","constants"],"children":[]}]},{"name":"Uint8ClampedArray","path":["core","uint8clampedarray"],"children":[{"name":"Constants","path":["core","uint8clampedarray","constants"],"children":[]}]},{"name":"Uint32Array","path":["core","uint32array"],"children":[{"name":"Constants","path":["core","uint32array","constants"],"children":[]}]},{"name":"Uint16Array","path":["core","uint16array"],"children":[{"name":"Constants","path":["core","uint16array","constants"],"children":[]}]},{"name":"Uint8Array","path":["core","uint8array"],"children":[{"name":"Constants","path":["core","uint8array","constants"],"children":[]}]},{"name":"Int32Array","path":["core","int32array"],"children":[{"name":"Constants","path":["core","int32array","constants"],"children":[]}]},{"name":"Int16Array","path":["core","int16array"],"children":[{"name":"Constants","path":["core","int16array","constants"],"children":[]}]},{"name":"Int8Array","path":["core","int8array"],"children":[{"name":"Constants","path":["core","int8array","constants"],"children":[]}]},{"name":"Float64Array","path":["core","float64array"],"children":[{"name":"Constants","path":["core","float64array","constants"],"children":[]}]},{"name":"Float32Array","path":["core","float32array"],"children":[{"name":"Constants","path":["core","float32array","constants"],"children":[]}]},{"name":"TypedArray","path":["core","typedarray"],"children":[]},{"name":"ArrayBuffer","path":["core","arraybuffer"],"children":[]},{"name":"WeakSet","path":["core","weakset"],"children":[]},{"name":"Set","path":["core","set"],"children":[]},{"name":"WeakMap","path":["core","weakmap"],"children":[]},{"name":"Map","path":["core","map"],"children":[]},{"name":"AsyncIterator","path":["core","asynciterator"],"children":[]},{"name":"Iterator","path":["core","iterator"],"children":[]},{"name":"JSON","path":["core","json"],"children":[{"name":"Decode","path":["core","json","decode"],"children":[]},{"name":"Encode","path":["core","json","encode"],"children":[]},{"name":"Classify","path":["core","json","classify"],"children":[]}]},{"name":"Type","path":["core","type"],"children":[{"name":"Classify","path":["core","type","classify"],"children":[]}]},{"name":"Symbol","path":["core","symbol"],"children":[]},{"name":"String","path":["core","string"],"children":[]},{"name":"RegExp","path":["core","regexp"],"children":[{"name":"Result","path":["core","regexp","result"],"children":[]}]},{"name":"Promise","path":["core","promise"],"children":[]},{"name":"Ordering","path":["core","ordering"],"children":[]},{"name":"Object","path":["core","object"],"children":[]},{"name":"Nullable","path":["core","nullable"],"children":[]},{"name":"Null","path":["core","null"],"children":[]},{"name":"Math","path":["core","math"],"children":[{"name":"Int","path":["core","math","int"],"children":[]},{"name":"Constants","path":["core","math","constants"],"children":[]}]},{"name":"BigInt","path":["core","bigint"],"children":[]},{"name":"Int","path":["core","int"],"children":[{"name":"Constants","path":["core","int","constants"],"children":[]}]},{"name":"Float","path":["core","float"],"children":[{"name":"Constants","path":["core","float","constants"],"children":[]}]},{"name":"Error","path":["core","error"],"children":[{"name":"URIError","path":["core","error","urierror"],"children":[]},{"name":"TypeError","path":["core","error","typeerror"],"children":[]},{"name":"SyntaxError","path":["core","error","syntaxerror"],"children":[]},{"name":"ReferenceError","path":["core","error","referenceerror"],"children":[]},{"name":"RangeError","path":["core","error","rangeerror"],"children":[]},{"name":"EvalError","path":["core","error","evalerror"],"children":[]}]},{"name":"Dict","path":["core","dict"],"children":[]},{"name":"Date","path":["core","date"],"children":[{"name":"UTC","path":["core","date","utc"],"children":[]}]},{"name":"DataView","path":["core","dataview"],"children":[]},{"name":"Console","path":["core","console"],"children":[]},{"name":"Array","path":["core","array"],"children":[]}]}} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index c2cbe01ac..03e05c909 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@headlessui/react": "^1.2.0", "@mdx-js/loader": "^2.3.0", "@rescript/react": "^0.12.0-alpha.3", - "@rescript/tools": "^0.3.0", + "@rescript/tools": "^0.5.0", "codemirror": "^5.54.0", "docson": "^2.1.0", "eslint-config-next": "^13.1.1", @@ -1353,14 +1353,14 @@ } }, "node_modules/@rescript/tools": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@rescript/tools/-/tools-0.3.0.tgz", - "integrity": "sha512-h4m2lnmkz7CqkJxNQ+/hnGDnq28CmF+EdWQ/FnbLzY0TABDLYYoRUZ4UfyvqzX7OJbK0QRPSz2HKF0DyEWOczw==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@rescript/tools/-/tools-0.5.0.tgz", + "integrity": "sha512-gqKZhpXdFMRb0i+aCNKNtbHANFYC/nM7LLLRkkYQLgeJ2teVCV9otO09KIA7CvSZevN6x68r/dkeWi3klLdydA==", "dependencies": { "rescript": "^11.0.0-rc.7" }, "bin": { - "rescript-tools": "src/Cli.bs.js" + "rescript-tools": "npm/cli.js" }, "engines": { "node": "*" @@ -14432,9 +14432,9 @@ "requires": {} }, "@rescript/tools": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@rescript/tools/-/tools-0.3.0.tgz", - "integrity": "sha512-h4m2lnmkz7CqkJxNQ+/hnGDnq28CmF+EdWQ/FnbLzY0TABDLYYoRUZ4UfyvqzX7OJbK0QRPSz2HKF0DyEWOczw==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@rescript/tools/-/tools-0.5.0.tgz", + "integrity": "sha512-gqKZhpXdFMRb0i+aCNKNtbHANFYC/nM7LLLRkkYQLgeJ2teVCV9otO09KIA7CvSZevN6x68r/dkeWi3klLdydA==", "requires": { "rescript": "^11.0.0-rc.7" } diff --git a/package.json b/package.json index bf577d0d7..88bf7f11b 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "@headlessui/react": "^1.2.0", "@mdx-js/loader": "^2.3.0", "@rescript/react": "^0.12.0-alpha.3", - "@rescript/tools": "^0.3.0", + "@rescript/tools": "^0.5.0", "codemirror": "^5.54.0", "docson": "^2.1.0", "eslint-config-next": "^13.1.1", diff --git a/src/ApiDocs.res b/src/ApiDocs.res index ba683bcba..ecfcc34d0 100644 --- a/src/ApiDocs.res +++ b/src/ApiDocs.res @@ -424,84 +424,88 @@ let processStaticProps = (~slug: array, ~version: string) => { switch content { | Some({mainModule, tree}) => switch mainModule->Js.Dict.get(modulePath) { - | Some(Object(mod)) => - let docItem = Docgen.decodeModule(mod) - - switch docItem { - | Docgen.Module({id, name, docstrings, items, ?deprecated}) => - let items = items->Js.Array2.map(item => - switch item { - | Docgen.Value({id, docstrings, signature, name, ?deprecated}) => - Value({ - id, - docstrings, - signature, - name, - deprecated: deprecated->Js.Null.fromOption, - }) - | Type({id, docstrings, signature, name, ?deprecated, ?detail}) => - let detail = switch detail { - | Some(kind) => - switch kind { - | Docgen.Record({items}) => - let items = items->Js.Array2.map(({ + | Some(json) => + let {items, docstrings, deprecated, name} = Docgen.decodeFromJson(json) + let id = switch json { + | Object(dict) => + switch Js.Dict.get(dict, "id") { + | Some(String(s)) => s + | _ => "" + } + | _ => "" + } + + let items = items->Js.Array2.map(item => + switch item { + | Docgen.Value({id, docstrings, signature, name, ?deprecated}) => + Value({ + id, + docstrings, + signature, + name, + deprecated: deprecated->Js.Null.fromOption, + }) + | Type({id, docstrings, signature, name, ?deprecated, ?detail}) => + let detail = switch detail { + | Some(kind) => + switch kind { + | Docgen.Record({items}) => + let items = items->Js.Array2.map(({ + name, + docstrings, + signature, + optional, + ?deprecated, + }) => { + { name, docstrings, signature, optional, - ?deprecated, - }) => { - { - name, - docstrings, - signature, - optional, - deprecated: deprecated->Js.Null.fromOption, - } - }) - Record({items: items})->Js.Null.return - | Variant({items}) => - let items = items->Js.Array2.map(({name, docstrings, signature, ?deprecated}) => { - { - name, - docstrings, - signature, - deprecated: deprecated->Js.Null.fromOption, - } - }) - - Variant({items: items})->Js.Null.return - } - | None => Js.Null.empty + deprecated: deprecated->Js.Null.fromOption, + } + }) + Record({items: items})->Js.Null.return + | Variant({items}) => + let items = items->Js.Array2.map(({name, docstrings, signature, ?deprecated}) => { + { + name, + docstrings, + signature, + deprecated: deprecated->Js.Null.fromOption, + } + }) + + Variant({items: items})->Js.Null.return } - Type({ - id, - docstrings, - signature, - name, - deprecated: deprecated->Js.Null.fromOption, - detail, - }) - | _ => assert(false) + | None => Js.Null.empty } - ) - let module_ = { - id, - name, - docstrings, - deprecated: deprecated->Js.Null.fromOption, - items, + Type({ + id, + docstrings, + signature, + name, + deprecated: deprecated->Js.Null.fromOption, + detail, + }) + | _ => assert(false) } + ) + let module_ = { + id, + name, + docstrings, + deprecated: deprecated->Js.Null.fromOption, + items, + } - let toctree = tree->Js.Dict.get(moduleName) + let toctree = tree->Js.Dict.get(moduleName) - switch toctree { - | Some(toctree) => Ok({module_, toctree: (Obj.magic(toctree): node)}) - | None => Error(`Failed to find toctree to ${modulePath}`) - } - | _ => Error(`Failed to find module ${modulePath}`) + switch toctree { + | Some(toctree) => Ok({module_, toctree: (Obj.magic(toctree): node)}) + | None => Error(`Failed to find toctree to ${modulePath}`) } - | Some(_) => Error(`Expected an object for ${modulePath}`) + | None => Error(`Failed to get key for ${modulePath}`) } | None => Error(`Failed to get API Data for version ${version} and module ${moduleName}`)