UNPKG

551 BTypeScriptView Raw
1import { Store } from '@uppy/core';
2import { Reducer, Middleware, Store as Redux } from 'redux';
3
4export interface ReduxStoreOptions {
5 store: Redux<object>;
6 id?: string;
7 selector?: (state: any) => object;
8}
9
10declare class ReduxStore implements Store {
11 constructor(opts: ReduxStoreOptions);
12 getState(): object;
13 setState(patch: object): void;
14 subscribe(listener: any): () => void;
15}
16
17export default function createReduxStore(opts: ReduxStoreOptions): ReduxStore;
18export const reducer: Reducer<object>;
19export const middleware: Middleware;