-
Notifications
You must be signed in to change notification settings - Fork 483
Expand file tree
/
Copy pathv4.res.txt
More file actions
105 lines (84 loc) · 2.02 KB
/
v4.res.txt
File metadata and controls
105 lines (84 loc) · 2.02 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
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
@res.jsxComponentProps
type props<'x, 'y> = {x: 'x, y: 'y} // Component with type constraint
let make = ({x, y, _}: props<string, string>): React.element => React.string(x ++ y)
let make = {
let \"V4" = (props: props<_>) => make(props)
\"V4"
}
module AnotherName = {
@res.jsxComponentProps
type // Component with another name than "make"
props<'x> = {x: 'x}
let anotherName = ({x, _}: props<_>): React.element => React.string(x)
let anotherName = {
let \"V4$AnotherName$anotherName" = (props: props<_>) => anotherName(props)
\"V4$AnotherName$anotherName"
}
}
module Uncurried = {
@res.jsxComponentProps
type props<'x> = {x: 'x}
let make = ({x, _}: props<_>): React.element => React.string(x)
let make = {
let \"V4$Uncurried" = (props: props<_>) => make(props)
\"V4$Uncurried"
}
}
module type TUncurried = {
@res.jsxComponentProps
type props<'x> = {x: 'x}
let make: React.component<props<string>>
}
module E = {
@res.jsxComponentProps @live
type props<'x> = {x: 'x}
external make: React.component<props<string>> = "default"
}
module EUncurried = {
@res.jsxComponentProps @live
type props<'x> = {x: 'x}
external make: React.component<props<string>> = "default"
}
module Rec = {
@res.jsxComponentProps
type props = {}
let rec make = {
let make$Internal = (_: props): React.element => {
make(({}: props))
}
let make = {
let \"V4$Rec" = props => make$Internal(props)
\"V4$Rec"
}
make
}
}
module Rec1 = {
@res.jsxComponentProps
type props = {}
let rec make = {
let make$Internal = (_: props): React.element => {
React.null
}
let make = {
let \"V4$Rec1" = props => make$Internal(props)
\"V4$Rec1"
}
make
}
}
module Rec2 = {
@res.jsxComponentProps
type props = {}
let rec make = {
let make$Internal = (_: props): React.element => {
mm(({}: props))
}
let make = {
let \"V4$Rec2" = props => make$Internal(props)
\"V4$Rec2"
}
make
}
and mm = x => make(x)
}