UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

30 lines (29 loc) 1.73 kB
import React from 'react'; import { MapStateToPropsParam, MapDispatchToPropsParam, InferableComponentEnhancerWithProps } from 'react-redux'; export declare type FactoryElement = (...args: any[]) => React.ComponentType; export declare type Factory = FactoryElement & { deps: FactoryElement[]; }; export declare type InjectorType = { provide: (factory: any, replacement: any) => InjectorType; get: (fac: any, parent?: any) => any; }; export declare const ERROR_MSG: { wrongRecipeType: string; noDep: (fac: any, parent: any) => string; notFunc: string; }; export declare function injector(map?: Map<any, any>): InjectorType; export declare function flattenDeps(allDeps: Factory[], factory: any): Factory[]; export declare function provideRecipesToInjector(recipes: [Factory, Factory][], appInjector: InjectorType): InjectorType; export declare function typeCheckRecipe(recipe: any): boolean; export interface WithState<RootState> { <TStateProps = {}, TDispatchProps = {}, TOwnProps = {}, State = RootState>(lenses: any[], mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps, State>, mapDispatchToProps?: MapDispatchToPropsParam<TDispatchProps, TOwnProps>): InferableComponentEnhancerWithProps<TStateProps & TDispatchProps, TOwnProps>; } export declare function withState(lenses?: any[], mapStateToProps?: (state: any) => any, actions?: {}): (Component: any) => import("react-redux").ConnectedComponent<({ state, ...props }: { [x: string]: any; state: any; }) => React.JSX.Element, { context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined; store?: import("redux").Store<any, import("redux").AnyAction> | undefined; }>;