@data-client/normalizr
Version:
Normalizes and denormalizes JSON according to schema for Redux and Flux applications
13 lines (12 loc) • 552 B
TypeScript
import Cache from './cache.js';
import { EntityInterface, EntityPath } from '../interface.js';
import { INVALID } from './symbol.js';
export default class LocalCache implements Cache {
private localCache;
getEntity(pk: string, schema: EntityInterface, entity: any, computeValue: (localCacheKey: Map<string, any>) => void): object | undefined | typeof INVALID;
getResults(input: any, cachable: boolean, computeValue: () => any): {
data: any;
paths: EntityPath[];
};
}
//# sourceMappingURL=localCache.d.ts.map