@@ -9,7 +9,11 @@ module EntryValue = {
9
9
}
10
10
}
11
11
12
- type t
12
+ type t = private {
13
+ keys : Webapi__Iterator .t <string >,
14
+ values : Webapi__Iterator .t <EntryValue .t >,
15
+ entries : Webapi__Iterator .t <(string , EntryValue .t )>,
16
+ }
13
17
14
18
@new external make : unit => t = "FormData"
15
19
@send external append : (t , string , string ) => unit = "append"
18
22
@send external getAll : (t , string ) => array <EntryValue .t > = "getAll"
19
23
@send external set : (t , string , string ) => unit = "set"
20
24
@send external has : (t , string ) => bool = "has"
21
- @send external keys : t => Webapi__Iterator .t <string > = "keys"
22
- @send external values : t => Webapi__Iterator .t <EntryValue .t > = "values"
23
25
24
26
@send external appendObject : (t , string , {.. }, ~filename : string = ?, unit ) => unit = "append"
25
27
33
35
34
36
@send external setFile : (t , string , Webapi__File .t , ~filename : string = ?, unit ) => unit = "set"
35
37
38
+ @ocaml.doc ("For compatibility. Prefer the record field." )
39
+ @send external keys : t => Webapi__Iterator .t <string > = "keys"
40
+ @ocaml.doc ("For compatibility. Prefer the record field." )
41
+ @send external values : t => Webapi__Iterator .t <EntryValue .t > = "values"
42
+ @ocaml.doc ("For compatibility. Prefer the record field." )
36
43
@send external entries : t => Webapi__Iterator .t <(string , EntryValue .t )> = "entries"
0 commit comments