-
Notifications
You must be signed in to change notification settings - Fork 465
/
Copy pathaliasProps.res.txt
131 lines (103 loc) · 2.57 KB
/
aliasProps.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
@@jsxConfig({version: 4, mode: "automatic"})
module C0 = {
type props<'priority, 'text> = {priority: 'priority, text?: 'text}
let make = ({priority: _, text: ?__text, _}: props<_, _>) => {
let text = switch __text {
| Some(text) => text
| None => "Test"
}
React.string(text)
}
let make = {
let \"AliasProps$C0" = React.component((props: props<_>) => make(props))
\"AliasProps$C0"
}
}
module C1 = {
type props<'priority, 'text> = {priority: 'priority, text?: 'text}
let make = ({priority: p, text: ?__text, _}: props<_, _>) => {
let text = switch __text {
| Some(text) => text
| None => "Test"
}
React.string(p ++ text)
}
let make = {
let \"AliasProps$C1" = React.component((props: props<_>) => make(props))
\"AliasProps$C1"
}
}
module C2 = {
type props<'foo> = {foo?: 'foo}
let make = ({foo: ?__bar, _}: props<_>) => {
let bar = switch __bar {
| Some(foo) => foo
| None => ""
}
React.string(bar)
}
let make = {
let \"AliasProps$C2" = React.component((props: props<_>) => make(props))
\"AliasProps$C2"
}
}
module C3 = {
type props<'foo, 'a, 'b> = {foo?: 'foo, a?: 'a, b: 'b}
let make = ({foo: ?__bar, a: ?__a, b, _}: props<_, _, _>) => {
let bar = switch __bar {
| Some(foo) => foo
| None => ""
}
let a = switch __a {
| Some(a) => a
| None => bar
}
{
React.string(bar ++ a ++ b)
}
}
let make = {
let \"AliasProps$C3" = React.component((props: props<_>) => make(props))
\"AliasProps$C3"
}
}
module C4 = {
type props<'a, 'x> = {a: 'a, x?: 'x}
let make = ({a: b, x: ?__x, _}: props<_, _>) => {
let x = switch __x {
| Some(x) => x
| None => true
}
ReactDOM.jsx("div", {children: ?ReactDOM.someElement(b)})
}
let make = {
let \"AliasProps$C4" = React.component((props: props<_>) => make(props))
\"AliasProps$C4"
}
}
module C5 = {
type props<'a, 'z> = {a: 'a, z?: 'z}
let make = ({a: (x, y), z: ?__z, _}: props<_, _>) => {
let z = switch __z {
| Some(z) => z
| None => 3
}
x + y + z
}
let make = {
let \"AliasProps$C5" = React.component((props: props<_>) => make(props))
\"AliasProps$C5"
}
}
module C6 = {
module type Comp = {
type props = {}
let make: React.component<props>
}
type props<'comp, 'x> = {comp: 'comp, x: 'x}
let make = ({comp: module(Comp: Comp), x: (a, b), _}: props<_, _>) => React.jsx(Comp.make, {})
let make = {
let \"AliasProps$C6" = React.component((props: props<_>) => make(props))
\"AliasProps$C6"
}
}