@data-client/core
Version:
Async State Management without the Management. REST, GraphQL, SSE, Websockets, Fetch
27 lines • 1.16 kB
TypeScript
import type { DevToolsConfig } from './devtoolsTypes.js';
import type { Controller } from '../index.js';
import type { Middleware } from '../middlewareTypes.js';
import type { Manager, State, ActionTypes } from '../types.js';
export type { DevToolsConfig };
/** Integrates with https://github.com/reduxjs/redux-devtools
*
* Options: https://github.com/reduxjs/redux-devtools/blob/main/extension/docs/API/Arguments.md
*
* @see https://dataclient.io/docs/api/DevToolsManager
*/
export default class DevToolsManager implements Manager {
middleware: Middleware;
protected devTools: undefined | any;
protected started: boolean;
protected actions: [ActionTypes, State<unknown>][];
protected controller: Controller;
skipLogging?: (action: ActionTypes) => boolean;
maxBufferLength: number;
constructor(config?: DevToolsConfig, skipLogging?: (action: ActionTypes) => boolean);
handleAction(action: any, state: any): void;
/** Called when initial state is ready */
init(state: State<any>): void;
/** Ensures all subscriptions are cleaned up. */
cleanup(): void;
}
//# sourceMappingURL=DevtoolsManager.d.ts.map