Skip to content

Commit 410f3c2

Browse files
committed
add tests for record extension
1 parent 7bc7061 commit 410f3c2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

jscomp/test/DotDotDot.res

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,28 @@ type b = {dotdotdot: a, y: string}
55
type c = {dotdotdot: b, z: string}
66

77
let v: c = {x: 10, y: "", z: ""}
8+
9+
type globalProps = {
10+
id?: string,
11+
name?: string,
12+
title?: string,
13+
className?: string,
14+
}
15+
16+
type anchorProps = {
17+
dotdotdot: globalProps,
18+
download?: string,
19+
href?: string,
20+
target?: [#_self | #_blank | #_parent | #_top],
21+
}
22+
23+
// globalProps only case?
24+
type divProps = {
25+
dotdotdot: globalProps,
26+
}
27+
28+
type svgProps = {
29+
dotdotdot: globalProps,
30+
x?: string,
31+
y?: string,
32+
}

0 commit comments

Comments
 (0)