UNPKG

@o3r/core

Version:
29 lines 1.29 kB
import type { EntityState } from '@ngrx/entity'; import { AsyncStoreItem, EntityStatus } from './async.interfaces'; /** * Serializer for asynchronous store. * @param state State of an asynchronous store to serialize * @returns a plain json object to pass to json.stringify */ export declare function asyncSerializer<T extends AsyncStoreItem>(state: T): T; /** * Serializer for asynchronous entity store. * @param state State of an asynchronous entity store to serialize * @returns a plain json object to pass to json.stringify */ export declare function asyncEntitySerializer<T extends AsyncStoreItem & EntityState<AsyncStoreItem>>(state: T): T & { entities: import("@ngrx/entity").Dictionary<AsyncStoreItem>; }; /** * Serializer for asynchronous entity store with status. * @param state State of an asynchronous entity store with status to serialize * @returns a plain json object to pass to json.stringify */ export declare function asyncEntityWithStatusSerializer<T extends AsyncStoreItem & EntityState<AsyncStoreItem & { status: EntityStatus<T['entities']['status']>; }>>(state: T): T & { entities: import("@ngrx/entity").Dictionary<AsyncStoreItem & { status: EntityStatus<T["entities"]["status"]>; }>; }; //# sourceMappingURL=async.serializer.d.ts.map