UNPKG

wxt-zustand

Version:

High-performance Zustand state management for WXT web extensions with seamless cross-tab synchronization and sub-10ms React re-renders

13 lines 588 B
import type { BackendStoreService, WXTZustandAction } from '../types'; /** * Remote backend service exposed via @webext-core/proxy-service on the frontend. * We only rely on dispatch and fetchInitialState in the frontend path; the * other methods from BackendStoreService may be proxied to async versions which * we do not consume to avoid type friction. */ export type RemoteBackendService<S> = { dispatch(action: WXTZustandAction<S>): Promise<WXTZustandAction<S>>; fetchInitialState(): Promise<S>; }; export type { BackendStoreService }; //# sourceMappingURL=types.d.ts.map