@colisweb/rescript-toolkit 4.16.2 → 4.17.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colisweb/rescript-toolkit",
3
- "version": "4.16.2",
3
+ "version": "4.17.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -2,9 +2,28 @@ module MakeString = () => {
2
2
  module Id: {
3
3
  @decco
4
4
  type t
5
+
6
+ module Dict: {
7
+ type key = t
8
+ type t<'a>
9
+ let get: (t<'a>, key) => option<'a>
10
+ @set_index
11
+ external set: (t<'a>, key, 'a) => unit = ""
12
+ @val
13
+ external keys: t<'a> => array<string> = "Object.keys"
14
+ @obj /** Returns an empty dictionary. */
15
+ external empty: unit => t<'a> = ""
16
+ let unsafeDeleteKey: (. t<string>, string) => unit
17
+ let entries: t<'a> => array<(key, 'a)>
18
+ let values: t<'a> => array<'a>
19
+ let fromList: list<(key, 'a)> => t<'a>
20
+ let fromArray: array<(key, 'a)> => t<'a>
21
+ let map: ((. 'a) => 'b, t<'a>) => t<'b>
22
+ }
5
23
  } = {
6
24
  @decco
7
25
  type t = string
26
+ module Dict = Js.Dict
8
27
  }
9
28
 
10
29
  @decco
@@ -6142,3 +6142,8 @@ module BiTestTube = {
6142
6142
  external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
6143
6143
  "BiTestTube"
6144
6144
  }
6145
+ module MdBarcodeReader = {
6146
+ @module("react-icons/md") @react.component
6147
+ external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
6148
+ "MdBarcodeReader"
6149
+ }