@colisweb/rescript-toolkit 4.26.5 → 4.27.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.26.5",
3
+ "version": "4.27.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -134,3 +134,18 @@ module History = {
134
134
  @send
135
135
  external pushStateWithURL: (t, Js.t<'a>, string, URL.t) => unit = "pushState"
136
136
  }
137
+
138
+ module FormData = {
139
+ type t
140
+
141
+ module File = {
142
+ type t
143
+ }
144
+
145
+ @new external create: unit => t = "FormData"
146
+
147
+ @send external append: (t, string, 'a) => unit = "append"
148
+ @send external get: (t, string) => Js.Nullable.t<'a> = "get"
149
+ @send external getAll: (t, string) => Js.Nullable.t<array<'a>> = "getAll"
150
+ @send external has: (t, string) => bool = "has"
151
+ }
@@ -116,3 +116,18 @@ external screenWidth: int = "window.screen.width"
116
116
 
117
117
  @val
118
118
  external screenHeight: int = "window.screen.height"
119
+
120
+ module FormData: {
121
+ type t
122
+
123
+ module File: {
124
+ type t
125
+ }
126
+
127
+ @new external create: unit => t = "FormData"
128
+
129
+ @send external append: (t, string, 'a) => unit = "append"
130
+ @send external get: (t, string) => Js.Nullable.t<'a> = "get"
131
+ @send external getAll: (t, string) => Js.Nullable.t<array<'a>> = "getAll"
132
+ @send external has: (t, string) => bool = "has"
133
+ }