UNPKG

zustand-utils

Version:
6 lines (5 loc) 258 B
import { StoreApi } from 'zustand'; export type WithoutCallSignature<T> = { [K in keyof T]: T[K]; }; export declare const storeApiSetState: <T = any>(storeApi: WithoutCallSignature<StoreApi<T>>, state: Partial<T>, replace: boolean, action: any) => void;