tweak-tools
Version:
Tweak your React projects until awesomeness
10 lines (9 loc) • 330 B
TypeScript
import type { Data, StoreType } from '../types';
/**
* Hook that returns the values from the zustand store for the given paths.
* @param paths paths for which to return values
* @param initialData
*/
export declare function useValuesForPath(store: StoreType, paths: string[], initialData: Data): {
[path: string]: any;
};