UNPKG

@data-client/normalizr

Version:

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

26 lines 1.06 kB
import { BaseDelegate } from './BaseDelegate.js'; import { EntitiesInterface } from '../interface.js'; export type ImmutableJSEntityTable = { get(key: string): EntitiesInterface | undefined; getIn(k: [key: string, pk: string]): { toJS(): any; } | undefined; setIn(k: [key: string, pk: string], value: any): any; }; /** Basic ImmutableJS state interfaces for normalize side */ export declare class ImmDelegate extends BaseDelegate { entities: ImmutableJSEntityTable; indexes: ImmutableJSEntityTable; constructor(state: { entities: ImmutableJSEntityTable; indexes: ImmutableJSEntityTable; }); protected getEntitiesObject(key: string): object | undefined; getEntities(key: string): EntitiesInterface | undefined; getEntity(...path: [key: string, pk: string]): any; getIndex(key: string, field: string): object | undefined; getIndexEnd(entity: { get(k: string): string | undefined; } | undefined, value: string): string | undefined; } //# sourceMappingURL=Delegate.imm.d.ts.map