@@ -29,10 +29,10 @@ react
29
29
:: forall props state fx
30
30
. { displayName :: String
31
31
, initialState :: { | state }
32
- , receiveProps :: props -> { | state } -> (SetState state fx ) -> Eff (react :: ReactFX | fx ) Unit
33
- , render :: props -> { | state } -> (SetState state fx ) -> JSX
32
+ , receiveProps :: { | props } -> { | state } -> (SetState state fx ) -> Eff (react :: ReactFX | fx ) Unit
33
+ , render :: { | props } -> { | state } -> (SetState state fx ) -> JSX
34
34
}
35
- -> ReactComponent props
35
+ -> ReactComponent { | props }
36
36
react { displayName, initialState, receiveProps, render } =
37
37
component_
38
38
{ displayName
@@ -48,9 +48,9 @@ react { displayName, initialState, receiveProps, render } =
48
48
stateless
49
49
:: forall props
50
50
. { displayName :: String
51
- , render :: props -> JSX
51
+ , render :: { | props } -> JSX
52
52
}
53
- -> ReactComponent props
53
+ -> ReactComponent { | props }
54
54
stateless { displayName, render } =
55
55
react
56
56
{ displayName
@@ -65,8 +65,8 @@ type SetState state fx = ({ | state } -> { | state }) -> Eff (react :: ReactFX |
65
65
-- | Create a `JSX` node from a React component, by providing the props.
66
66
createElement
67
67
:: forall props
68
- . ReactComponent props
69
- -> props
68
+ . ReactComponent { | props }
69
+ -> { | props }
70
70
-> JSX
71
71
createElement = runFn2 createElement_
72
72
@@ -95,12 +95,12 @@ foreign import component_
95
95
:: forall props state fx
96
96
. { displayName :: String
97
97
, initialState :: { | state }
98
- , receiveProps :: EffFn3 (react :: ReactFX | fx ) props { | state } (SetState state fx ) Unit
99
- , render :: Fn3 props { | state } (SetState state fx ) JSX
98
+ , receiveProps :: EffFn3 (react :: ReactFX | fx ) { | props } { | state } (SetState state fx ) Unit
99
+ , render :: Fn3 { | props } { | state } (SetState state fx ) JSX
100
100
}
101
- -> ReactComponent props
101
+ -> ReactComponent { | props }
102
102
103
- foreign import createElement_ :: forall props . Fn2 (ReactComponent props ) props JSX
103
+ foreign import createElement_ :: forall props . Fn2 (ReactComponent { | props } ) { | props } JSX
104
104
105
105
foreign import createElementKeyed_ :: forall props . Fn2 (ReactComponent { | props } ) { key :: String | props } JSX
106
106
0 commit comments