UNPKG

@data-client/normalizr

Version:

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

25 lines 940 B
import type { EntitiesInterface, EntityTable, NormalizedIndex } from '../interface.js'; import { BaseDelegate } from './BaseDelegate.js'; /** Basic POJO state interfaces for normalize side * Used directly as QueryDelegate, and inherited by NormalizeDelegate */ export declare class POJODelegate extends BaseDelegate { entities: EntityTable; indexes: { [entityKey: string]: { [indexName: string]: { [lookup: string]: string; }; }; }; constructor(state: { entities: EntityTable; indexes: NormalizedIndex; }); protected getEntitiesObject(key: string): object | undefined; getEntities(key: string): EntitiesInterface | undefined; getEntity(key: string, pk: string): any; getIndex(key: string, field: string): object | undefined; getIndexEnd(entity: object | undefined, value: string): any; } //# sourceMappingURL=Delegate.d.ts.map