reduxed-chrome-storage
Version:
Redux interface to chrome.storage (browser.storage). A unified way to use Redux in all modern browser extensions. The only way to get Redux working in Manifest V3 Chrome extensions
12 lines (11 loc) • 424 B
TypeScript
import { Store, Action, AnyAction, compose } from 'redux';
export declare type ActionExtension = ReturnType<typeof compose>;
export interface ExtendedDispatch<A extends Action = AnyAction> {
(action: A | ActionExtension, ...extraArgs: any[]): any;
}
export interface ExtendedStore extends Store {
dispatch: ExtendedDispatch;
}
export interface StoreCreatorContainer {
(preloadedState?: any): Store;
}