zust
Version:
A powerful, lightweight, and fully standalone state management library for React with time-travel debugging, computed values, and zero dependencies
18 lines • 544 B
TypeScript
import type { StoreHook } from "../types";
interface ReduxDevToolsExtension {
connect(options: {
name: string;
}): {
init(state: unknown): void;
send(action: string, state: unknown): void;
disconnect(): void;
};
}
declare global {
interface Window {
__REDUX_DEVTOOLS_EXTENSION__?: ReduxDevToolsExtension;
}
}
export declare function devToolsPlugin<T extends object>(useStore: StoreHook<T>, storageName: string, initialState: T): void;
export {};
//# sourceMappingURL=devTools.d.ts.map