UNPKG

error-flux

Version:

Network request interceptor and logger for web applications

13 lines (12 loc) 420 B
import { ErrorFluxState } from "../types"; declare class ErrorFluxStore { private state; private listeners; constructor(initialState?: Partial<ErrorFluxState>); getState(): ErrorFluxState; setState(newState: Partial<ErrorFluxState>): void; subscribe(listener: (state: ErrorFluxState) => void): () => void; private notifyListeners; } declare const store: ErrorFluxStore; export default store;