-
Notifications
You must be signed in to change notification settings - Fork 463
/
Copy pathdefaultValueProp.res.txt
76 lines (63 loc) · 1.41 KB
/
defaultValueProp.res.txt
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
module C0 = {
type props<'a, 'b> = {a?: 'a, b?: 'b}
let make = ({a: ?__a, b: ?__b, _}: props<_, _>) => {
let a = switch __a {
| Some(a) => a
| None => 2
}
let b = switch __b {
| Some(b) => b
| None => a * 2
}
React.int(a + b)
}
let make = {
let \"DefaultValueProp$C0" = (props: props<_>) => make(props)
\"DefaultValueProp$C0"
}
}
module C1 = {
type props<'a, 'b> = {a?: 'a, b: 'b}
let make = ({a: ?__a, b, _}: props<_, _>) => {
let a = switch __a {
| Some(a) => a
| None => 2
}
React.int(a + b)
}
let make = {
let \"DefaultValueProp$C1" = (props: props<_>) => make(props)
\"DefaultValueProp$C1"
}
}
module C2 = {
let a = "foo"
type props<'a> = {a?: 'a}
let make = ({a: ?__a, _}: props<_>) => {
let a = switch __a {
| Some(a) => a
| None => a
}
React.string(a)
}
let make = {
let \"DefaultValueProp$C2" = (props: props<_>) => make(props)
\"DefaultValueProp$C2"
}
}
module C3 = {
type props<'disabled> = {disabled?: 'disabled}
let make = ({disabled: ?__everythingDisabled, _}: props<bool>) => {
let everythingDisabled = switch __everythingDisabled {
| Some(disabled) => disabled
| None => false
}
{
React.string(everythingDisabled ? "true" : "false")
}
}
let make = {
let \"DefaultValueProp$C3" = (props: props<_>) => make(props)
\"DefaultValueProp$C3"
}
}