-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathReactDOM.bs.js
More file actions
58 lines (46 loc) · 1.15 KB
/
ReactDOM.bs.js
File metadata and controls
58 lines (46 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';
var Caml_option = require("rescript/lib/js/caml_option.js");
var Root = {};
var Client = {
Root: Root
};
function getString(formData, name) {
var value = formData.get(name);
if (!(value == null) && typeof value === "string") {
return Caml_option.some(value);
}
}
function getFile(formData, name) {
var value = formData.get(name);
if (!(value == null) && typeof value !== "string") {
return Caml_option.some(value);
}
}
function getAll(t, string) {
return t.getAll(string).map(function (value) {
if (typeof value === "string") {
return {
TAG: "String",
_0: value
};
} else {
return {
TAG: "File",
_0: value
};
}
});
}
var $$FormData = {
getString: getString,
getFile: getFile,
getAll: getAll
};
var Ref = {};
var Style;
exports.Client = Client;
exports.$$FormData = $$FormData;
exports.Ref = Ref;
exports.Style = Style;
/* No side effect */