Skip to content

Commit 77724ab

Browse files
committed
update super_errors
1 parent d8342a5 commit 77724ab

7 files changed

+49
-9
lines changed

tests/build_tests/super_errors/expected/jsx_custom_component_children.res.expected

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,4 @@
99

1010
This has type: float
1111
But children passed to this component must be of type:
12-
React.element (defined as Jsx.element)
13-
14-
In JSX, all content must be JSX elements. You can convert float to a JSX element with React.float.
12+
React.element (defined as Jsx_common.element)

tests/build_tests/super_errors/expected/jsx_type_mismatch_float.res.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
18 │
99

1010
This has type: float
11-
But it's expected to have type:
12-
React.element (defined as Jsx_common.element)
11+
But children of JSX fragments must be of type:
12+
React.element (defined as Jsx_common.element)

tests/build_tests/super_errors/expected/jsx_type_mismatch_int.res.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
18 │
99

1010
This has type: int
11-
But it's expected to have type:
12-
React.element (defined as Jsx_common.element)
11+
But children of JSX fragments must be of type:
12+
React.element (defined as Jsx_common.element)

tests/build_tests/super_errors/expected/jsx_type_mismatch_string.res.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
18 │
99

1010
This has type: string
11-
But it's expected to have type:
12-
React.element (defined as Jsx_common.element)
11+
But children of JSX fragments must be of type:
12+
React.element (defined as Jsx_common.element)

tests/build_tests/super_errors/expected/missing_required_prop.res.expected

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11

2+
Warning number 3
3+
/.../fixtures/missing_required_prop.res:14:26-40
4+
5+
12 │ external someElement: React.element => option<React.element> = "%iden
6+
│ tity"
7+
13 │ @module("react/jsx-runtime")
8+
14 │ external jsx: (string, JsxDOM.domProps) => Jsx.element = "jsx"
9+
15 │ }
10+
16 │
11+
12+
deprecated: module JsxDOM
13+
Use `Jsx.DOM` instead.
14+
15+
216
We've found a bug for you!
317
/.../fixtures/missing_required_prop.res:28:7-37
418

tests/build_tests/super_errors/expected/missing_required_prop_when_children.res.expected

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11

2+
Warning number 3
3+
/.../fixtures/missing_required_prop_when_children.res:17:26-40
4+
5+
15 │ external someElement: React.element => option<React.element> = "%iden
6+
│ tity"
7+
16 │ @module("react/jsx-runtime")
8+
17 │ external jsx: (string, JsxDOM.domProps) => Jsx.element = "jsx"
9+
18 │ }
10+
19 │
11+
12+
deprecated: module JsxDOM
13+
Use `Jsx.DOM` instead.
14+
15+
216
We've found a bug for you!
317
/.../fixtures/missing_required_prop_when_children.res:31:7-32:37
418

tests/build_tests/super_errors/expected/missing_required_prop_when_single_child.res.expected

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11

2+
Warning number 3
3+
/.../fixtures/missing_required_prop_when_single_child.res:14:26-40
4+
5+
12 │ external someElement: React.element => option<React.element> = "%iden
6+
│ tity"
7+
13 │ @module("react/jsx-runtime")
8+
14 │ external jsx: (string, JsxDOM.domProps) => Jsx.element = "jsx"
9+
15 │ }
10+
16 │
11+
12+
deprecated: module JsxDOM
13+
Use `Jsx.DOM` instead.
14+
15+
216
We've found a bug for you!
317
/.../fixtures/missing_required_prop_when_single_child.res:28:7-37
418

0 commit comments

Comments
 (0)