@@ -15,7 +15,7 @@ declare module 'recompose' {
1515 import * as React from 'react' ;
1616 import { ComponentType as Component , ComponentClass , StatelessComponent , ValidationMap } from 'react' ;
1717
18- type mapper < TInner , TOutter > = ( input : TInner ) => TOutter ;
18+ type mapper < TInner , TOuter > = ( input : TInner ) => TOuter ;
1919 type predicate < T > = mapper < T , boolean > ;
2020 type predicateDiff < T > = ( current : T , next : T ) => boolean
2121
@@ -35,8 +35,8 @@ declare module 'recompose' {
3535 subscribe ( observer : Observer < T > ) : Subscription ;
3636 }
3737
38- interface ComponentEnhancer < TInner , TOutter > {
39- ( component : Component < TInner > ) : ComponentClass < TOutter > ;
38+ interface ComponentEnhancer < TInner , TOuter > {
39+ ( component : Component < TInner > ) : ComponentClass < TOuter > ;
4040 }
4141
4242 // Injects props and removes them from the prop requirements.
@@ -62,42 +62,42 @@ declare module 'recompose' {
6262 // Higher-order components: https://github.com/acdlite/recompose/blob/master/docs/API.md#higher-order-components
6363
6464 // mapProps: https://github.com/acdlite/recompose/blob/master/docs/API.md#mapprops
65- export function mapProps < TInner , TOutter > (
66- propsMapper : mapper < TOutter , TInner > ,
67- ) : InferableComponentEnhancerWithProps < TInner , TOutter > ;
65+ export function mapProps < TInner , TOuter > (
66+ propsMapper : mapper < TOuter , TInner > ,
67+ ) : InferableComponentEnhancerWithProps < TInner , TOuter > ;
6868
6969 // withProps: https://github.com/acdlite/recompose/blob/master/docs/API.md#withprops
70- export function withProps < TInner , TOutter > (
71- createProps : TInner | mapper < TOutter , TInner >
72- ) : InferableComponentEnhancerWithProps < TInner & TOutter , TOutter > ;
70+ export function withProps < TInner , TOuter > (
71+ createProps : TInner | mapper < TOuter , TInner >
72+ ) : InferableComponentEnhancerWithProps < TInner & TOuter , TOuter > ;
7373
7474 // withPropsOnChange: https://github.com/acdlite/recompose/blob/master/docs/API.md#withpropsonchange
75- export function withPropsOnChange < TInner , TOutter > (
76- shouldMapOrKeys : string [ ] | predicateDiff < TOutter > ,
77- createProps : mapper < TOutter , TInner >
78- ) : InferableComponentEnhancerWithProps < TInner & TOutter , TOutter > ;
75+ export function withPropsOnChange < TInner , TOuter > (
76+ shouldMapOrKeys : string [ ] | predicateDiff < TOuter > ,
77+ createProps : mapper < TOuter , TInner >
78+ ) : InferableComponentEnhancerWithProps < TInner & TOuter , TOuter > ;
7979
8080 // withHandlers: https://github.com/acdlite/recompose/blob/master/docs/API.md#withhandlers
8181 type EventHandler = Function ;
82- // This type is required to infer TOutter
83- type HandleCreatorsStructure < TOutter > = {
84- [ handlerName : string ] : mapper < TOutter , EventHandler > ;
82+ // This type is required to infer TOuter
83+ type HandleCreatorsStructure < TOuter > = {
84+ [ handlerName : string ] : mapper < TOuter , EventHandler > ;
8585 } ;
8686 // This type is required to infer THandlers
87- type HandleCreatorsHandlers < TOutter , THandlers > = {
88- [ P in keyof THandlers ] : ( props : TOutter ) => THandlers [ P ] ;
87+ type HandleCreatorsHandlers < TOuter , THandlers > = {
88+ [ P in keyof THandlers ] : ( props : TOuter ) => THandlers [ P ] ;
8989 } ;
90- type HandleCreators < TOutter , THandlers > =
91- & HandleCreatorsStructure < TOutter >
92- & HandleCreatorsHandlers < TOutter , THandlers >
93- type HandleCreatorsFactory < TOutter , THandlers > = ( initialProps : TOutter ) =>
94- HandleCreators < TOutter , THandlers > ;
90+ type HandleCreators < TOuter , THandlers > =
91+ & HandleCreatorsStructure < TOuter >
92+ & HandleCreatorsHandlers < TOuter , THandlers >
93+ type HandleCreatorsFactory < TOuter , THandlers > = ( initialProps : TOuter ) =>
94+ HandleCreators < TOuter , THandlers > ;
9595
96- export function withHandlers < TOutter , THandlers > (
96+ export function withHandlers < TOuter , THandlers > (
9797 handlerCreators :
98- | HandleCreators < TOutter , THandlers >
99- | HandleCreatorsFactory < TOutter , THandlers >
100- ) : InferableComponentEnhancerWithProps < THandlers & TOutter , TOutter > ;
98+ | HandleCreators < TOuter , THandlers >
99+ | HandleCreatorsFactory < TOuter , THandlers >
100+ ) : InferableComponentEnhancerWithProps < THandlers & TOuter , TOuter > ;
101101
102102 // defaultProps: https://github.com/acdlite/recompose/blob/master/docs/API.md#defaultprops
103103 export function defaultProps < T = { } > (
@@ -106,12 +106,12 @@ declare module 'recompose' {
106106
107107 // renameProp: https://github.com/acdlite/recompose/blob/master/docs/API.md#renameProp
108108 export function renameProp (
109- outterName : string , innerName : string
109+ outerName : string , innerName : string
110110 ) : ComponentEnhancer < any , any > ;
111111
112112 // renameProps: https://github.com/acdlite/recompose/blob/master/docs/API.md#renameProps
113113 type NameMap = {
114- [ outterName : string ] : string ;
114+ [ outerName : string ] : string ;
115115 } ;
116116 export function renameProps (
117117 nameMap : NameMap
@@ -132,31 +132,31 @@ declare module 'recompose' {
132132 { [ stateUpdateName in TStateUpdaterName ] : ( state : TState ) => TState }
133133 )
134134 export function withState <
135- TOutter ,
135+ TOuter ,
136136 TState ,
137137 TStateName extends string ,
138138 TStateUpdaterName extends string
139139 > (
140140 stateName : TStateName ,
141141 stateUpdaterName : TStateUpdaterName ,
142- initialState : TState | mapper < TOutter , TState >
142+ initialState : TState | mapper < TOuter , TState >
143143 ) : InferableComponentEnhancerWithProps <
144144 stateProps < TState , TStateName , TStateUpdaterName > ,
145- TOutter
145+ TOuter
146146 > ;
147147
148148 // withStateHandlers: https://github.com/acdlite/recompose/blob/master/docs/API.md#withstatehandlers
149149 type StateHandler < TState > = ( ...payload : any [ ] ) => Partial < TState > | undefined ;
150150 type StateHandlerMap < TState > = {
151151 [ updaterName : string ] : StateHandler < TState > ;
152152 } ;
153- type StateUpdaters < TOutter , TState , TUpdaters > = {
154- [ updaterName in keyof TUpdaters ] : ( state : TState , props : TOutter ) => StateHandler < TState > ;
153+ type StateUpdaters < TOuter , TState , TUpdaters > = {
154+ [ updaterName in keyof TUpdaters ] : ( state : TState , props : TOuter ) => StateHandler < TState > ;
155155 } ;
156- export function withStateHandlers < TState , TUpdaters extends StateHandlerMap < TState > , TOutter = { } > (
157- createProps : TState | mapper < TOutter , TState > ,
158- stateUpdaters : StateUpdaters < TOutter , TState , TUpdaters > ,
159- ) : InferableComponentEnhancerWithProps < TOutter & TState & TUpdaters , TOutter > ;
156+ export function withStateHandlers < TState , TUpdaters extends StateHandlerMap < TState > , TOuter = { } > (
157+ createProps : TState | mapper < TOuter , TState > ,
158+ stateUpdaters : StateUpdaters < TOuter , TState , TUpdaters > ,
159+ ) : InferableComponentEnhancerWithProps < TOuter & TState & TUpdaters , TOuter > ;
160160
161161 // withReducer: https://github.com/acdlite/recompose/blob/master/docs/API.md#withReducer
162162 type reducer < TState , TAction > = ( s : TState , a : TAction ) => TState ;
@@ -170,7 +170,7 @@ declare module 'recompose' {
170170 { [ dispatchName in TDispatchName ] : ( a : TAction ) => void }
171171 )
172172 export function withReducer <
173- TOutter ,
173+ TOuter ,
174174 TState ,
175175 TAction ,
176176 TStateName extends string ,
@@ -179,18 +179,18 @@ declare module 'recompose' {
179179 stateName : TStateName ,
180180 dispatchName : TDispatchName ,
181181 reducer : reducer < TState , TAction > ,
182- initialState : TState | mapper < TOutter , TState >
182+ initialState : TState | mapper < TOuter , TState >
183183 ) : InferableComponentEnhancerWithProps <
184184 reducerProps < TState , TAction , TStateName , TDispatchName > ,
185- TOutter
185+ TOuter
186186 > ;
187187
188188 // branch: https://github.com/acdlite/recompose/blob/master/docs/API.md#branch
189- export function branch < TOutter > (
190- test : predicate < TOutter > ,
189+ export function branch < TOuter > (
190+ test : predicate < TOuter > ,
191191 trueEnhancer : ComponentEnhancer < any , any > | InferableComponentEnhancer < { } > ,
192192 falseEnhancer ?: ComponentEnhancer < any , any > | InferableComponentEnhancer < { } >
193- ) : ComponentEnhancer < any , TOutter > ;
193+ ) : ComponentEnhancer < any , TOuter > ;
194194
195195 // renderComponent: https://github.com/acdlite/recompose/blob/master/docs/API.md#renderComponent
196196 export function renderComponent < TProps > (
@@ -269,30 +269,30 @@ declare module 'recompose' {
269269 // Static property helpers: https://github.com/acdlite/recompose/blob/master/docs/API.md#static-property-helpers
270270
271271 // setStatic: https://github.com/acdlite/recompose/blob/master/docs/API.md#setStatic
272- export function setStatic < TOutter > (
272+ export function setStatic < TOuter > (
273273 key : string , value : any
274- ) : ComponentEnhancer < TOutter , TOutter > ;
274+ ) : ComponentEnhancer < TOuter , TOuter > ;
275275
276276 // setPropTypes: https://github.com/acdlite/recompose/blob/master/docs/API.md#setPropTypes
277- export function setPropTypes < TOutter > (
278- propTypes : ValidationMap < TOutter >
279- ) : ComponentEnhancer < any , TOutter > ;
277+ export function setPropTypes < TOuter > (
278+ propTypes : ValidationMap < TOuter >
279+ ) : ComponentEnhancer < any , TOuter > ;
280280
281281 // setDisplayName: https://github.com/acdlite/recompose/blob/master/docs/API.md#setDisplayName
282- export function setDisplayName < TOutter > (
282+ export function setDisplayName < TOuter > (
283283 displayName : string
284- ) : ComponentEnhancer < TOutter , TOutter > ;
284+ ) : ComponentEnhancer < TOuter , TOuter > ;
285285
286286
287287 // Utilities: https://github.com/acdlite/recompose/blob/master/docs/API.md#utilities
288288
289289 // compose: https://github.com/acdlite/recompose/blob/master/docs/API.md#compose
290- export function compose < TInner , TOutter > (
290+ export function compose < TInner , TOuter > (
291291 ...functions : Function [ ]
292- ) : ComponentEnhancer < TInner , TOutter > ;
293- // export function compose<TOutter >(
292+ ) : ComponentEnhancer < TInner , TOuter > ;
293+ // export function compose<TOuter >(
294294 // ...functions: Array<Function>
295- // ): ComponentEnhancer<any, TOutter >;
295+ // ): ComponentEnhancer<any, TOuter >;
296296 // export function compose(
297297 // ...functions: Array<Function>
298298 // ): ComponentEnhancer<any, any>;
@@ -366,14 +366,14 @@ declare module 'recompose' {
366366 ) => Component < TProps >
367367
368368 // mapPropsStream: https://github.com/acdlite/recompose/blob/master/docs/API.md#mapPropsStream
369- export function mapPropsStream < TInner , TOutter > (
370- transform : mapper < Subscribable < TOutter > , Subscribable < TInner > >
371- ) : ComponentEnhancer < TInner , TOutter > ;
369+ export function mapPropsStream < TInner , TOuter > (
370+ transform : mapper < Subscribable < TOuter > , Subscribable < TInner > >
371+ ) : ComponentEnhancer < TInner , TOuter > ;
372372
373373 // mapPropsStreamWithConfig: https://github.com/acdlite/recompose/blob/master/docs/API.md#mappropsstreamwithconfig
374- export function mapPropsStreamWithConfig ( config : ObservableConfig ) : < TInner , TOutter > (
375- transform : mapper < Subscribable < TOutter > , Subscribable < TInner > >
376- ) => ComponentEnhancer < TInner , TOutter > ;
374+ export function mapPropsStreamWithConfig ( config : ObservableConfig ) : < TInner , TOuter > (
375+ transform : mapper < Subscribable < TOuter > , Subscribable < TInner > >
376+ ) => ComponentEnhancer < TInner , TOuter > ;
377377
378378 // createEventHandler: https://github.com/acdlite/recompose/blob/master/docs/API.md#createEventHandler
379379 type EventHandlerOf < T , TSubs extends Subscribable < T > > = {
0 commit comments