1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | declare module 'recompose' {
|
15 |
|
16 | import * as React from 'react';
|
17 | import { ComponentType as Component, ComponentClass, StatelessComponent, ValidationMap } from 'react';
|
18 |
|
19 | type mapper<TInner, TOutter> = (input: TInner) => TOutter;
|
20 | type predicate<T> = mapper<T, boolean>;
|
21 | type predicateDiff<T> = (current: T, next: T) => boolean
|
22 |
|
23 |
|
24 | type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>
|
25 |
|
26 | interface Observer<T>{
|
27 | next(props: T): void;
|
28 | complete(): void;
|
29 | }
|
30 |
|
31 | interface Subscription{
|
32 | unsubscribe(): void
|
33 | }
|
34 |
|
35 | interface Subscribable<T> {
|
36 | subscribe(observer: Observer<T>): Subscription;
|
37 | }
|
38 |
|
39 | interface ComponentEnhancer<TInner, TOutter> {
|
40 | (component: Component<TInner>): ComponentClass<TOutter>;
|
41 | }
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export interface InferableComponentEnhancerWithProps<TInjectedProps, TNeedsProps> {
|
47 | <P extends TInjectedProps>(
|
48 | component: Component<P>
|
49 | ): React.ComponentClass<Omit<P, keyof TInjectedProps> & TNeedsProps>
|
50 | }
|
51 |
|
52 |
|
53 |
|
54 |
|
55 | export type InferableComponentEnhancer<TInjectedProps> =
|
56 | InferableComponentEnhancerWithProps<TInjectedProps, {}>
|
57 |
|
58 |
|
59 |
|
60 | export type DefaultingInferableComponentEnhancer<TInjectedProps> =
|
61 | InferableComponentEnhancerWithProps<TInjectedProps, Partial<TInjectedProps>>
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | export function mapProps<TInner, TOutter>(
|
67 | propsMapper: mapper<TOutter, TInner>,
|
68 | ): InferableComponentEnhancerWithProps<TInner, TOutter>;
|
69 |
|
70 |
|
71 | export function withProps<TInner, TOutter>(
|
72 | createProps: TInner | mapper<TOutter, TInner>
|
73 | ): InferableComponentEnhancerWithProps<TInner & TOutter, TOutter>;
|
74 |
|
75 |
|
76 | export function withPropsOnChange<TInner, TOutter>(
|
77 | shouldMapOrKeys: string[] | predicateDiff<TOutter>,
|
78 | createProps: mapper<TOutter, TInner>
|
79 | ): InferableComponentEnhancerWithProps<TInner & TOutter, TOutter>;
|
80 |
|
81 |
|
82 | type EventHandler = Function;
|
83 |
|
84 | type HandleCreatorsStructure<TOutter> = {
|
85 | [handlerName: string]: mapper<TOutter, EventHandler>;
|
86 | };
|
87 |
|
88 | type HandleCreatorsHandlers<TOutter, THandlers> = {
|
89 | [P in keyof THandlers]: (props: TOutter) => THandlers[P];
|
90 | };
|
91 | type HandleCreators<TOutter, THandlers> =
|
92 | & HandleCreatorsStructure<TOutter>
|
93 | & HandleCreatorsHandlers<TOutter, THandlers>
|
94 | type HandleCreatorsFactory<TOutter, THandlers> = (initialProps: TOutter) =>
|
95 | HandleCreators<TOutter, THandlers>;
|
96 |
|
97 | export function withHandlers<TOutter, THandlers>(
|
98 | handlerCreators:
|
99 | | HandleCreators<TOutter, THandlers>
|
100 | | HandleCreatorsFactory<TOutter, THandlers>
|
101 | ): InferableComponentEnhancerWithProps<THandlers & TOutter, TOutter>;
|
102 |
|
103 |
|
104 | export function defaultProps<T = {}>(
|
105 | props: T
|
106 | ): DefaultingInferableComponentEnhancer<T>;
|
107 |
|
108 |
|
109 | export function renameProp(
|
110 | outterName: string, innerName: string
|
111 | ): ComponentEnhancer<any, any>;
|
112 |
|
113 |
|
114 | type NameMap = {
|
115 | [outterName: string]: string;
|
116 | };
|
117 | export function renameProps(
|
118 | nameMap: NameMap
|
119 | ): ComponentEnhancer<any, any>;
|
120 |
|
121 |
|
122 | export function flattenProp(
|
123 | propName: string
|
124 | ): ComponentEnhancer<any, any>;
|
125 |
|
126 |
|
127 | type stateProps<
|
128 | TState,
|
129 | TStateName extends string,
|
130 | TStateUpdaterName extends string
|
131 | > = (
|
132 | {[stateName in TStateName]: TState} &
|
133 | {[stateUpdateName in TStateUpdaterName]: (state: TState) => TState}
|
134 | )
|
135 | export function withState<
|
136 | TOutter,
|
137 | TState,
|
138 | TStateName extends string,
|
139 | TStateUpdaterName extends string
|
140 | >(
|
141 | stateName: TStateName,
|
142 | stateUpdaterName: TStateUpdaterName,
|
143 | initialState: TState | mapper<TOutter, TState>
|
144 | ): InferableComponentEnhancerWithProps<
|
145 | stateProps<TState, TStateName, TStateUpdaterName>,
|
146 | TOutter
|
147 | >;
|
148 |
|
149 |
|
150 | type StateHandler<TState> = (...payload: any[]) => Partial<TState> | undefined;
|
151 | type StateHandlerMap<TState> = {
|
152 | [updaterName: string]: StateHandler<TState>;
|
153 | };
|
154 | type StateUpdaters<TOutter, TState, TUpdaters> = {
|
155 | [updaterName in keyof TUpdaters]: (state: TState, props: TOutter) => TUpdaters[updaterName];
|
156 | };
|
157 | export function withStateHandlers<TState, TUpdaters extends StateHandlerMap<TState>, TOutter = {}>(
|
158 | createProps: TState | mapper<TOutter, TState>,
|
159 | stateUpdaters: StateUpdaters<TOutter, TState, TUpdaters>,
|
160 | ): InferableComponentEnhancerWithProps<TOutter & TState & TUpdaters, TOutter>;
|
161 |
|
162 |
|
163 | type reducer<TState, TAction> = (s: TState, a: TAction) => TState;
|
164 | type reducerProps<
|
165 | TState,
|
166 | TAction,
|
167 | TStateName extends string,
|
168 | TDispatchName extends string
|
169 | > = (
|
170 | {[stateName in TStateName]: TState} &
|
171 | {[dispatchName in TDispatchName]: (a: TAction) => void}
|
172 | )
|
173 | export function withReducer<
|
174 | TOutter,
|
175 | TState,
|
176 | TAction,
|
177 | TStateName extends string,
|
178 | TDispatchName extends string
|
179 | >(
|
180 | stateName: TStateName,
|
181 | dispatchName: TDispatchName,
|
182 | reducer: reducer<TState, TAction>,
|
183 | initialState: TState | mapper<TOutter, TState>
|
184 | ): InferableComponentEnhancerWithProps<
|
185 | reducerProps<TState, TAction, TStateName, TDispatchName>,
|
186 | TOutter
|
187 | >;
|
188 |
|
189 |
|
190 | export function branch<TOutter>(
|
191 | test: predicate<TOutter>,
|
192 | trueEnhancer: ComponentEnhancer<any, any> | InferableComponentEnhancer<{}>,
|
193 | falseEnhancer?: ComponentEnhancer<any, any> | InferableComponentEnhancer<{}>
|
194 | ): ComponentEnhancer<any, TOutter>;
|
195 |
|
196 |
|
197 | export function renderComponent<TProps>(
|
198 | component: string | Component<TProps>
|
199 | ): ComponentEnhancer<any, any>;
|
200 |
|
201 |
|
202 | export const renderNothing: InferableComponentEnhancer<{}>;
|
203 |
|
204 |
|
205 | export function shouldUpdate<TProps>(
|
206 | test: predicateDiff<TProps>
|
207 | ): InferableComponentEnhancer<{}>;
|
208 |
|
209 |
|
210 | export function pure<TProps>
|
211 | (component: Component<TProps>): Component<TProps>;
|
212 |
|
213 |
|
214 | export function onlyUpdateForKeys(
|
215 | propKeys: Array<string>
|
216 | ) : InferableComponentEnhancer<{}>;
|
217 | export function onlyUpdateForKeys<T>(
|
218 | propKeys: Array<keyof T>
|
219 | ) : InferableComponentEnhancer<{}>;
|
220 |
|
221 |
|
222 |
|
223 | export const onlyUpdateForPropTypes: InferableComponentEnhancer<{}>;
|
224 |
|
225 |
|
226 | export function withContext<TContext, TProps>(
|
227 | childContextTypes: ValidationMap<TContext>,
|
228 | getChildContext: mapper<TProps, any>
|
229 | ) : InferableComponentEnhancer<{}>;
|
230 |
|
231 |
|
232 | export function getContext<TContext>(
|
233 | contextTypes: ValidationMap<TContext>
|
234 | ) : InferableComponentEnhancer<TContext>;
|
235 |
|
236 | interface _ReactLifeCycleFunctionsThisArguments<TProps, TState> {
|
237 | props: TProps,
|
238 | state: TState,
|
239 | setState<TKeyOfState extends keyof TState>(f: (prevState: TState, props: TProps) => Pick<TState, TKeyOfState>, callback?: () => any): void;
|
240 | setState<TKeyOfState extends keyof TState>(state: Pick<TState, TKeyOfState>, callback?: () => any): void;
|
241 | forceUpdate(callBack?: () => any): void;
|
242 |
|
243 | context: any;
|
244 | refs: {
|
245 | [key: string]: React.ReactInstance
|
246 | };
|
247 | }
|
248 | type ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance = {}> =
|
249 | _ReactLifeCycleFunctionsThisArguments<TProps, TState> & TInstance
|
250 |
|
251 | // lifecycle: https://github.com/acdlite/recompose/blob/master/docs/API.md#lifecycle
|
252 | interface ReactLifeCycleFunctions<TProps, TState, TInstance = {}> {
|
253 | componentWillMount?: (this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>) => void;
|
254 | UNSAFE_componentWillMount?(this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>): void;
|
255 | componentDidMount?: (this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>) => void;
|
256 | componentWillReceiveProps?: (this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>, nextProps: TProps) => void;
|
257 | UNSAFE_componentWillReceiveProps?(this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>, nextProps: TProps): void;
|
258 | shouldComponentUpdate?: (this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>, nextProps: TProps, nextState: TState) => boolean;
|
259 | componentWillUpdate?: (this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>, nextProps: TProps, nextState: TState) => void;
|
260 | UNSAFE_componentWillUpdate?(this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>, nextProps: TProps, nextState: TState): void;
|
261 | componentDidUpdate?: (this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>, prevProps: TProps, prevState: TState) => void;
|
262 | componentWillUnmount?: (this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>) => void;
|
263 | componentDidCatch?:(this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>, error: Error, info: React.ErrorInfo) => void;
|
264 | }
|
265 |
|
266 | export function lifecycle<TProps, TState, TInstance = {}>(
|
267 | spec: ReactLifeCycleFunctions<TProps, TState, TInstance> & TInstance
|
268 | ): InferableComponentEnhancer<{}>;
|
269 |
|
270 |
|
271 | export const toClass: InferableComponentEnhancer<{}>;
|
272 |
|
273 |
|
274 | export function toRenderProps<TInner, TOutter>(
|
275 | hoc: InferableComponentEnhancerWithProps<TInner & TOutter, TOutter>
|
276 | ): StatelessComponent<TOutter & { children: (props: TInner) => React.ReactElement }>;
|
277 |
|
278 |
|
279 | export function fromRenderProps<TInner, TOutter, TRenderProps = {}>(
|
280 | RenderPropsComponent: Component<any>,
|
281 | propsMapper: (props: TRenderProps) => TInner,
|
282 | renderPropName?: string
|
283 | ): ComponentEnhancer<TInner & TOutter, TOutter>;
|
284 |
|
285 |
|
286 |
|
287 |
|
288 | export function setStatic(
|
289 | key: string, value: any
|
290 | ): <T extends Component<any>>(component: T) => T;
|
291 |
|
292 |
|
293 | export function setPropTypes<P>(
|
294 | propTypes: ValidationMap<P>
|
295 | ): <T extends Component<P>>(component: T) => T;
|
296 |
|
297 |
|
298 | export function setDisplayName(
|
299 | displayName: string
|
300 | ): <T extends Component<any>>(component: T) => T;
|
301 |
|
302 |
|
303 |
|
304 |
|
305 |
|
306 | export function compose<TInner, TOutter>(
|
307 | ...functions: Function[]
|
308 | ): ComponentEnhancer<TInner, TOutter>;
|
309 |
|
310 |
|
311 |
|
312 |
|
313 |
|
314 |
|
315 |
|
316 |
|
317 | export function getDisplayName(
|
318 | component: Component<any>
|
319 | ): string;
|
320 |
|
321 |
|
322 | export function wrapDisplayName(
|
323 | component: Component<any>,
|
324 | wrapperName: string
|
325 | ): string;
|
326 |
|
327 |
|
328 | export function shallowEqual(
|
329 | a: Object, b: Object
|
330 | ): boolean;
|
331 |
|
332 |
|
333 | export function isClassComponent(
|
334 | value: any
|
335 | ): boolean;
|
336 |
|
337 |
|
338 | export function createEagerElement(
|
339 | type: Component<any> | string,
|
340 | props?: Object,
|
341 | children?: React.ReactNode
|
342 | ): React.ReactElement;
|
343 |
|
344 |
|
345 | type componentFactory = (props?: Object, children?: React.ReactNode) => React.ReactElement;
|
346 | export function createEagerFactory(
|
347 | type: Component<any> | string
|
348 | ): componentFactory;
|
349 |
|
350 |
|
351 | export function createSink(
|
352 | callback: (props: Object) => void
|
353 | ): React.ComponentClass<any>;
|
354 |
|
355 |
|
356 | export function componentFromProp(
|
357 | propName: string
|
358 | ): StatelessComponent<any>;
|
359 |
|
360 |
|
361 | export function nest(
|
362 | ...Components: (string | Component<any>)[]
|
363 | ): React.ComponentClass<any>;
|
364 |
|
365 |
|
366 | export function hoistStatics<TProps>(
|
367 | hoc: InferableComponentEnhancer<TProps>,
|
368 | blacklist?: {[key: string]: boolean}
|
369 | ): InferableComponentEnhancer<TProps>;
|
370 |
|
371 |
|
372 |
|
373 |
|
374 |
|
375 |
|
376 | export function componentFromStream<TProps>(
|
377 | propsToReactNode: mapper<Subscribable<TProps>, Subscribable<React.ReactNode>>
|
378 | ): Component<TProps>;
|
379 |
|
380 |
|
381 | export function componentFromStreamWithConfig(config: ObservableConfig): <TProps> (
|
382 | propsToReactNode: mapper<Subscribable<TProps>, Subscribable<React.ReactNode>>
|
383 | ) => Component<TProps>
|
384 |
|
385 | // mapPropsStream: https://github.com/acdlite/recompose/blob/master/docs/API.md#mapPropsStream
|
386 | export function mapPropsStream<TInner, TOutter>(
|
387 | transform: mapper<Subscribable<TOutter>, Subscribable<TInner>>
|
388 | ): ComponentEnhancer<TInner, TOutter>;
|
389 |
|
390 | // mapPropsStreamWithConfig: https://github.com/acdlite/recompose/blob/master/docs/API.md#mappropsstreamwithconfig
|
391 | export function mapPropsStreamWithConfig(config: ObservableConfig): <TInner, TOutter> (
|
392 | transform: mapper<Subscribable<TOutter>, Subscribable<TInner>>
|
393 | ) => ComponentEnhancer<TInner, TOutter>;
|
394 |
|
395 | // createEventHandler: https://github.com/acdlite/recompose/blob/master/docs/API.md#createEventHandler
|
396 | type EventHandlerOf<T, TSubs extends Subscribable<T>> = {
|
397 | handler: (value: T) => void;
|
398 | stream: TSubs;
|
399 | };
|
400 | export function createEventHandler<T, TSubs extends Subscribable<T>>(): EventHandlerOf<T, TSubs>;
|
401 |
|
402 |
|
403 | export function createEventHandlerWithConfig(config: ObservableConfig):
|
404 | <T, TSubs extends Subscribable<T>>() => EventHandlerOf<T, TSubs>;
|
405 |
|
406 |
|
407 | type ObservableConfig = {
|
408 | fromESObservable?: <T>(observable: Subscribable<T>) => any;
|
409 | toESObservable?: <T>(stream: any) => Subscribable<T>;
|
410 | };
|
411 | export function setObservableConfig(config: ObservableConfig): void;
|
412 | }
|
413 |
|
414 |
|
415 | declare module 'recompose/rxjsObservableConfig' {
|
416 |
|
417 | import { ObservableConfig } from 'recompose';
|
418 |
|
419 | const rxjsconfig: ObservableConfig;
|
420 |
|
421 | export default rxjsconfig;
|
422 | }
|
423 |
|
424 |
|
425 | declare module 'recompose/rxjs4ObservableConfig' {
|
426 |
|
427 | import { ObservableConfig } from 'recompose';
|
428 |
|
429 | const rxjs4config: ObservableConfig;
|
430 |
|
431 | export default rxjs4config;
|
432 | }
|
433 |
|
434 |
|
435 | declare module 'recompose/mostObservableConfig' {
|
436 |
|
437 | import { ObservableConfig } from 'recompose';
|
438 |
|
439 | const mostConfig: ObservableConfig;
|
440 |
|
441 | export default mostConfig;
|
442 | }
|
443 |
|
444 |
|
445 | declare module 'recompose/xstreamObservableConfig' {
|
446 |
|
447 | import { ObservableConfig } from 'recompose';
|
448 |
|
449 | const xstreamConfig: ObservableConfig;
|
450 |
|
451 | export default xstreamConfig;
|
452 | }
|
453 |
|
454 |
|
455 | declare module 'recompose/baconObservableConfig' {
|
456 |
|
457 | import { ObservableConfig } from 'recompose';
|
458 |
|
459 | const baconConfig: ObservableConfig;
|
460 |
|
461 | export default baconConfig;
|
462 | }
|
463 |
|
464 |
|
465 | declare module 'recompose/kefirObservableConfig' {
|
466 |
|
467 | import { ObservableConfig } from 'recompose';
|
468 |
|
469 | const kefirConfig: ObservableConfig;
|
470 |
|
471 | export default kefirConfig;
|
472 | }
|
473 |
|
474 |
|
475 | declare module 'recompose/mapProps' {
|
476 | import { mapProps } from 'recompose';
|
477 | export default mapProps;
|
478 | }
|
479 |
|
480 |
|
481 | declare module 'recompose/withProps' {
|
482 | import { withProps } from 'recompose';
|
483 | export default withProps;
|
484 | }
|
485 |
|
486 |
|
487 | declare module 'recompose/withPropsOnChange' {
|
488 | import { withPropsOnChange } from 'recompose';
|
489 | export default withPropsOnChange;
|
490 | }
|
491 |
|
492 |
|
493 | declare module 'recompose/withHandlers' {
|
494 | import { withHandlers } from 'recompose';
|
495 | export default withHandlers;
|
496 | }
|
497 |
|
498 |
|
499 | declare module 'recompose/defaultProps' {
|
500 | import { defaultProps } from 'recompose';
|
501 | export default defaultProps;
|
502 | }
|
503 |
|
504 |
|
505 | declare module 'recompose/renameProp' {
|
506 | import { renameProp } from 'recompose';
|
507 | export default renameProp;
|
508 | }
|
509 |
|
510 |
|
511 | declare module 'recompose/renameProps' {
|
512 | import { renameProps } from 'recompose';
|
513 | export default renameProps;
|
514 | }
|
515 |
|
516 |
|
517 | declare module 'recompose/flattenProp' {
|
518 | import { flattenProp } from 'recompose';
|
519 | export default flattenProp;
|
520 | }
|
521 |
|
522 |
|
523 | declare module 'recompose/withState' {
|
524 | import { withState } from 'recompose';
|
525 | export default withState;
|
526 | }
|
527 |
|
528 |
|
529 | declare module 'recompose/withStateHandlers' {
|
530 | import { withStateHandlers } from 'recompose';
|
531 | export default withStateHandlers;
|
532 | }
|
533 |
|
534 |
|
535 | declare module 'recompose/withReducer' {
|
536 | import { withReducer } from 'recompose';
|
537 | export default withReducer;
|
538 | }
|
539 |
|
540 |
|
541 | declare module 'recompose/branch' {
|
542 | import { branch } from 'recompose';
|
543 | export default branch;
|
544 | }
|
545 |
|
546 |
|
547 | declare module 'recompose/renderComponent' {
|
548 | import { renderComponent } from 'recompose';
|
549 | export default renderComponent;
|
550 | }
|
551 |
|
552 |
|
553 | declare module 'recompose/renderNothing' {
|
554 | import { renderNothing } from 'recompose';
|
555 | export default renderNothing;
|
556 | }
|
557 |
|
558 |
|
559 | declare module 'recompose/shouldUpdate' {
|
560 | import { shouldUpdate } from 'recompose';
|
561 | export default shouldUpdate;
|
562 | }
|
563 |
|
564 |
|
565 | declare module 'recompose/pure' {
|
566 | import { pure } from 'recompose';
|
567 | export default pure;
|
568 | }
|
569 |
|
570 |
|
571 | declare module 'recompose/onlyUpdateForKeys' {
|
572 | import { onlyUpdateForKeys } from 'recompose';
|
573 | export default onlyUpdateForKeys;
|
574 | }
|
575 |
|
576 |
|
577 | declare module 'recompose/onlyUpdateForPropTypes' {
|
578 | import { onlyUpdateForPropTypes } from 'recompose';
|
579 | export default onlyUpdateForPropTypes;
|
580 | }
|
581 |
|
582 |
|
583 | declare module 'recompose/withContext' {
|
584 | import { withContext } from 'recompose';
|
585 | export default withContext;
|
586 | }
|
587 |
|
588 |
|
589 | declare module 'recompose/getContext' {
|
590 | import { getContext } from 'recompose';
|
591 | export default getContext;
|
592 | }
|
593 |
|
594 |
|
595 | declare module 'recompose/lifecycle' {
|
596 | import { lifecycle } from 'recompose';
|
597 | export default lifecycle;
|
598 | }
|
599 |
|
600 |
|
601 | declare module 'recompose/toClass' {
|
602 | import { toClass } from 'recompose';
|
603 | export default toClass;
|
604 | }
|
605 |
|
606 |
|
607 | declare module 'recompose/toRenderProps' {
|
608 | import { toRenderProps } from 'recompose';
|
609 | export default toRenderProps;
|
610 | }
|
611 |
|
612 |
|
613 | declare module 'recompose/fromRenderProps' {
|
614 | import { fromRenderProps } from 'recompose';
|
615 | export default fromRenderProps;
|
616 | }
|
617 |
|
618 |
|
619 | declare module 'recompose/setStatic' {
|
620 | import { setStatic } from 'recompose';
|
621 | export default setStatic;
|
622 | }
|
623 |
|
624 |
|
625 | declare module 'recompose/setPropTypes' {
|
626 | import { setPropTypes } from 'recompose';
|
627 | export default setPropTypes;
|
628 | }
|
629 |
|
630 |
|
631 | declare module 'recompose/setDisplayName' {
|
632 | import { setDisplayName } from 'recompose';
|
633 | export default setDisplayName;
|
634 | }
|
635 |
|
636 |
|
637 | declare module 'recompose/compose' {
|
638 | import { compose } from 'recompose';
|
639 | export default compose;
|
640 | }
|
641 |
|
642 |
|
643 | declare module 'recompose/getDisplayName' {
|
644 | import { getDisplayName } from 'recompose';
|
645 | export default getDisplayName;
|
646 | }
|
647 |
|
648 |
|
649 | declare module 'recompose/wrapDisplayName' {
|
650 | import { wrapDisplayName } from 'recompose';
|
651 | export default wrapDisplayName;
|
652 | }
|
653 |
|
654 |
|
655 | declare module 'recompose/shallowEqual' {
|
656 | import { shallowEqual } from 'recompose';
|
657 | export default shallowEqual;
|
658 | }
|
659 |
|
660 |
|
661 | declare module 'recompose/isClassComponent' {
|
662 | import { isClassComponent } from 'recompose';
|
663 | export default isClassComponent;
|
664 | }
|
665 |
|
666 |
|
667 | declare module 'recompose/createSink' {
|
668 | import { createSink } from 'recompose';
|
669 | export default createSink;
|
670 | }
|
671 |
|
672 |
|
673 | declare module 'recompose/componentFromProp' {
|
674 | import { componentFromProp } from 'recompose';
|
675 | export default componentFromProp;
|
676 | }
|
677 |
|
678 |
|
679 | declare module 'recompose/nest' {
|
680 | import { nest } from 'recompose';
|
681 | export default nest;
|
682 | }
|
683 |
|
684 |
|
685 | declare module 'recompose/hoistStatics' {
|
686 | import { hoistStatics } from 'recompose';
|
687 | export default hoistStatics;
|
688 | }
|
689 |
|
690 |
|
691 | declare module 'recompose/componentFromStream' {
|
692 | import { componentFromStream } from 'recompose';
|
693 | export { componentFromStreamWithConfig } from 'recompose';
|
694 | export default componentFromStream;
|
695 | }
|
696 |
|
697 |
|
698 | declare module 'recompose/mapPropsStream' {
|
699 | import { mapPropsStream } from 'recompose';
|
700 | export { mapPropsStreamWithConfig } from 'recompose';
|
701 | export default mapPropsStream;
|
702 | }
|
703 |
|
704 |
|
705 | declare module 'recompose/createEventHandler' {
|
706 | import { createEventHandler } from 'recompose';
|
707 | export { createEventHandlerWithConfig } from 'recompose';
|
708 | export default createEventHandler;
|
709 | }
|
710 |
|
711 |
|
712 | declare module 'recompose/setObservableConfig' {
|
713 | import { setObservableConfig } from 'recompose';
|
714 | export default setObservableConfig;
|
715 | }
|