Skip to content

Commit d2ccc4e

Browse files
authored
Use @rescript/react 0.12.0 for playground bundling and gentype test (#6572)
1 parent f7b146d commit d2ccc4e

File tree

6 files changed

+37
-28
lines changed

6 files changed

+37
-28
lines changed

jscomp/gentype_tests/typescript-react-example/package-lock.json

Lines changed: 26 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/gentype_tests/typescript-react-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"lint": "eslint src"
1111
},
1212
"dependencies": {
13-
"@rescript/react": "^0.11.0",
13+
"@rescript/react": "^0.12.0",
1414
"react": "^18.2.0",
1515
"react-dom": "^18.2.0"
1616
},

jscomp/gentype_tests/typescript-react-example/src/Hooks.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ module ForwardRef = {
9999
)
100100
}
101101

102-
@genType type callback<'input, 'output> = React.callback<'input, 'output>
102+
@genType type callback<'input, 'output> = 'input => 'output
103103

104104
@genType type testReactContext = React.Context.t<int>
105105

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
open ReactV3
22

33
@genType
4-
type cb = React.callback<int, string>
4+
type cb = int => string

packages/playground-bundling/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/playground-bundling/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"license": "ISC",
1313
"dependencies": {
1414
"@rescript/core": "^0.6.0",
15-
"@rescript/react": "^0.12.0-alpha.3"
15+
"@rescript/react": "^0.12.0"
1616
}
1717
}

0 commit comments

Comments
 (0)