UNPKG

@data-client/core

Version:

Async State Management without the Management. REST, GraphQL, SSE, Websockets, Fetch

31 lines (30 loc) 1.18 kB
import { DevToolsConfig } from './devtoolsTypes.js'; import { Controller } from '../index.js'; import { Middleware } from '../middlewareTypes.js'; import { Manager, State, ActionTypes } from '../types.js'; export { 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