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
@@ -249,6 +251,8 @@ foreign import statelessComponent :: forall props.
249251-- | React class for components.
250252foreign import data ReactClass :: Type -> Type
251253
254+ type role ReactClass representational
255+
252256foreign import fragment :: ReactClass { children :: Children }
253257
254258-- | 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 @@ -135,6 +135,8 @@ type SyntheticWheelEvent
135135
136136foreign import data SyntheticEvent_ :: # Type -> Type
137137
138+ type role SyntheticEvent_ representational
139+
138140foreign import data NativeEventTarget :: Type
139141
140142foreign import data NativeEvent :: Type
You can’t perform that action at this time.
0 commit comments