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