@data-client/normalizr
Version:
Normalizes and denormalizes JSON according to schema for Redux and Flux applications
8 lines • 415 B
TypeScript
import { GetDependency } from '../memo/WeakDependencyMap.js';
import { EntityPath } from '../types.js';
export declare function getEntities<K extends object>(state: State<K>): GetDependency<EntityPath, K>;
export type State<K extends object> = Record<string, Record<string, K>> | {
getIn(path: [string, string]): K;
};
export type GetEntity = GetDependency<EntityPath>;
//# sourceMappingURL=getEntities.d.ts.map