tweak-tools
Version:
Tweak your React projects until awesomeness
13 lines (12 loc) • 342 B
TypeScript
import { Data } from '../types';
/**
* Takes a data object with { [path.key]: value } and returns { [key]: value }.
* Also warns when two similar keys are being used by the user.
*
* @param data
* @param paths
* @param shouldWarn
*/
export declare function getValuesForPaths(data: Data, paths: string[]): {
[path: string]: any;
};