UNPKG

@data-client/normalizr

Version:

Normalizes and denormalizes JSON according to schema for Redux and Flux applications

10 lines 470 B
import type { EntityInterface, EntityPath } from '../interface.js'; import type { INVALID } from './symbol.js'; export default interface Cache { 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=cache.d.ts.map