File tree 3 files changed +10
-0
lines changed
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ foreign import data ReactComponent :: Type
93
93
-- | A reference to a component, essentially React's `this`.
94
94
foreign import data ReactThis :: Type -> Type -> Type
95
95
96
+ type role ReactThis representational representational
97
+
96
98
foreign import data ReactUnusedSnapshot :: Type
97
99
98
100
type SyntheticEventHandler event = EffectFn1 event Unit
@@ -251,6 +253,8 @@ foreign import statelessComponent :: forall props.
251
253
-- | React class for components.
252
254
foreign import data ReactClass :: Type -> Type
253
255
256
+ type role ReactClass representational
257
+
254
258
foreign import fragment :: ReactClass { children :: Children }
255
259
256
260
-- | Read the component props.
Original file line number Diff line number Diff line change @@ -27,8 +27,12 @@ foreign import data NativeNode :: Type
27
27
28
28
foreign import data Ref :: Type -> Type
29
29
30
+ type role Ref representational
31
+
30
32
foreign import data RefHandler :: Type -> Type
31
33
34
+ type role RefHandler representational
35
+
32
36
33
37
foreign import createRef :: forall a . Effect (Ref a )
34
38
Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ type SyntheticWheelEvent
136
136
137
137
foreign import data SyntheticEvent_ :: Row Type -> Type
138
138
139
+ type role SyntheticEvent_ representational
140
+
139
141
foreign import data NativeEventTarget :: Type
140
142
141
143
foreign import data NativeEvent :: Type
You can’t perform that action at this time.
0 commit comments