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
@@ -249,6 +251,8 @@ foreign import statelessComponent :: forall props.
249
251
-- | React class for components.
250
252
foreign import data ReactClass :: Type -> Type
251
253
254
+ type role ReactClass representational
255
+
252
256
foreign import fragment :: ReactClass { children :: Children }
253
257
254
258
-- | 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 @@ -135,6 +135,8 @@ type SyntheticWheelEvent
135
135
136
136
foreign import data SyntheticEvent_ :: # Type -> Type
137
137
138
+ type role SyntheticEvent_ representational
139
+
138
140
foreign import data NativeEventTarget :: Type
139
141
140
142
foreign import data NativeEvent :: Type
You can’t perform that action at this time.
0 commit comments