@colisweb/rescript-toolkit 4.16.3 → 4.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,13 +2,34 @@ module MakeString = () => {
|
|
|
2
2
|
module Id: {
|
|
3
3
|
@decco
|
|
4
4
|
type t
|
|
5
|
+
module Dict: {
|
|
6
|
+
type key = t
|
|
7
|
+
type t<'a>
|
|
8
|
+
let get: (t<'a>, key) => option<'a>
|
|
9
|
+
@set_index
|
|
10
|
+
external set: (t<'a>, key, 'a) => unit = ""
|
|
11
|
+
@val
|
|
12
|
+
external keys: t<'a> => array<string> = "Object.keys"
|
|
13
|
+
@obj /** Returns an empty dictionary. */
|
|
14
|
+
external empty: unit => t<'a> = ""
|
|
15
|
+
let unsafeDeleteKey: (. t<string>, string) => unit
|
|
16
|
+
let entries: t<'a> => array<(key, 'a)>
|
|
17
|
+
let values: t<'a> => array<'a>
|
|
18
|
+
let fromList: list<(key, 'a)> => t<'a>
|
|
19
|
+
let fromArray: array<(key, 'a)> => t<'a>
|
|
20
|
+
let map: ((. 'a) => 'b, t<'a>) => t<'b>
|
|
21
|
+
}
|
|
5
22
|
} = {
|
|
6
23
|
@decco
|
|
7
24
|
type t = string
|
|
25
|
+
module Dict = Js.Dict
|
|
8
26
|
}
|
|
9
27
|
|
|
10
28
|
@decco
|
|
11
29
|
type t = Id.t
|
|
30
|
+
|
|
31
|
+
module Dict = Id.Dict
|
|
32
|
+
|
|
12
33
|
external make: string => t = "%identity"
|
|
13
34
|
external toString: t => string = "%identity"
|
|
14
35
|
}
|