File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
dom/src/main/scala/org/scalajs/dom Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ import scala.scalajs.js.|
19
19
class FormData (form : HTMLFormElement = js.native) extends js.Iterable [js.Tuple2 [String , String ]] {
20
20
21
21
/** Appends a key/value pair to the FormData object. */
22
- def append (name : js.Any , value : js.Any , blobName : String = js.native): Unit = js.native
22
+ def append (name : js.Any , value : String ): Unit = js.native
23
+
24
+ def append (name : js.Any , value : Blob , blobName : String ): Unit = js.native
23
25
24
26
/** Deletes a key/value pair from the FormData object. */
25
27
def delete (name : String ): Unit = js.native
@@ -33,7 +35,11 @@ class FormData(form: HTMLFormElement = js.native) extends js.Iterable[js.Tuple2[
33
35
/** Sets a new value for an existing key inside a FormData object, or adds the key/value if it does not already exist.
34
36
*/
35
37
def set (
36
- name : String , value : String | Blob , blobName : String = js.native
38
+ name : String , value : String
39
+ ): Unit = js.native
40
+
41
+ def set (
42
+ name : String , value : Blob , blobName : String
37
43
): Unit = js.native
38
44
39
45
@ JSName (js.Symbol .iterator)
You can’t perform that action at this time.
0 commit comments