@@ -38,10 +38,10 @@ react
38
38
:: forall props state fx
39
39
. { displayName :: String
40
40
, initialState :: { | state }
41
- , receiveProps :: props -> { | state } -> (SetState state fx ) -> Eff (react :: ReactFX | fx ) Unit
42
- , render :: props -> { | state } -> (SetState state fx ) -> JSX
41
+ , receiveProps :: { | props } -> { | state } -> (SetState state fx ) -> Eff (react :: ReactFX | fx ) Unit
42
+ , render :: { | props } -> { | state } -> (SetState state fx ) -> JSX
43
43
}
44
- -> ReactComponent props
44
+ -> ReactComponent { | props }
45
45
react { displayName, initialState, receiveProps, render } =
46
46
component_
47
47
{ displayName
@@ -57,9 +57,9 @@ react { displayName, initialState, receiveProps, render } =
57
57
stateless
58
58
:: forall props
59
59
. { displayName :: String
60
- , render :: props -> JSX
60
+ , render :: { | props } -> JSX
61
61
}
62
- -> ReactComponent props
62
+ -> ReactComponent { | props }
63
63
stateless { displayName, render } =
64
64
react
65
65
{ displayName
@@ -74,8 +74,8 @@ type SetState state fx = ({ | state } -> { | state }) -> Eff (react :: ReactFX |
74
74
-- | Create a `JSX` node from a React component, by providing the props.
75
75
createElement
76
76
:: forall props
77
- . ReactComponent props
78
- -> props
77
+ . ReactComponent { | props }
78
+ -> { | props }
79
79
-> JSX
80
80
createElement = runFn2 createElement_
81
81
@@ -104,12 +104,12 @@ foreign import component_
104
104
:: forall props state fx
105
105
. { displayName :: String
106
106
, initialState :: { | state }
107
- , receiveProps :: EffFn3 (react :: ReactFX | fx ) props { | state } (SetState state fx ) Unit
108
- , render :: Fn3 props { | state } (SetState state fx ) JSX
107
+ , receiveProps :: EffFn3 (react :: ReactFX | fx ) { | props } { | state } (SetState state fx ) Unit
108
+ , render :: Fn3 { | props } { | state } (SetState state fx ) JSX
109
109
}
110
- -> ReactComponent props
110
+ -> ReactComponent { | props }
111
111
112
- foreign import createElement_ :: forall props . Fn2 (ReactComponent props ) props JSX
112
+ foreign import createElement_ :: forall props . Fn2 (ReactComponent { | props } ) { | props } JSX
113
113
114
114
foreign import createElementKeyed_ :: forall props . Fn2 (ReactComponent { | props } ) { key :: String | props } JSX
115
115
0 commit comments