File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 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
9393-- | A reference to a component, essentially React's `this`.
9494foreign import data ReactThis :: Type -> Type -> Type
9595
96+ type role ReactThis representational representational
97+
9698foreign import data ReactUnusedSnapshot :: Type
9799
98100type SyntheticEventHandler event = EffectFn1 event Unit
@@ -251,6 +253,8 @@ foreign import statelessComponent :: forall props.
251253-- | React class for components.
252254foreign import data ReactClass :: Type -> Type
253255
256+ type role ReactClass representational
257+
254258foreign import fragment :: ReactClass { children :: Children }
255259
256260-- | Read the component props.
Original file line number Diff line number Diff line change @@ -27,8 +27,12 @@ foreign import data NativeNode :: Type
2727
2828foreign import data Ref :: Type -> Type
2929
30+ type role Ref representational
31+
3032foreign import data RefHandler :: Type -> Type
3133
34+ type role RefHandler representational
35+
3236
3337foreign import createRef :: forall a . Effect (Ref a )
3438
Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ type SyntheticWheelEvent
136136
137137foreign import data SyntheticEvent_ :: Row Type -> Type
138138
139+ type role SyntheticEvent_ representational
140+
139141foreign import data NativeEventTarget :: Type
140142
141143foreign import data NativeEvent :: Type
You can’t perform that action at this time.
0 commit comments