Skip to content

Commit ba79529

Browse files
committed
React.Ref.t -> React.ref
1 parent 8797724 commit ba79529

File tree

2 files changed

+2
-2
lines changed
  • tests

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ module ForwardRef = {
103103

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

106-
@genType type testReactRef = React.Ref.t<int>
106+
@genType type testReactRef = React.ref<int>
107107

108108
@genType type testDomRef = ReactDOM.domRef
109109

tests/syntax_tests/data/idempotency/reason-react/src/ReactDOMRe.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ type domRef
8181

8282
module Ref = {
8383
type t = domRef
84-
type currentDomRef = React.Ref.t<Js.nullable<Dom.element>>
84+
type currentDomRef = React.ref<Js.nullable<Dom.element>>
8585
type callbackDomRef = Js.nullable<Dom.element> => unit
8686

8787
external domRef: currentDomRef => domRef = "%identity"

0 commit comments

Comments
 (0)