rx-store-core
Version:
A Rxjs and Immutable based Type-safe state management tool
12 lines (11 loc) • 779 B
TypeScript
import { BS, IBS, NRSConfig, ReactiveConfig } from "rx-store-types";
import { bound } from "./main/decorators/bound";
import { RxImStoreImpl } from "./main/immutable";
import { RxNStoreImpl } from "./main/normal";
import { isObject } from "./main/util/isObject";
import { isPrimitive } from "./main/util/isPrimitive";
import { shallowClone } from "./main/util/shallowClone";
import { shallowCompare } from "./main/util/shallowCompare";
export declare function NRS<S extends BS>(initiator: S, { cloneFunction, cloneFunctionMap, comparator, comparatorMap, config, }?: Partial<NRSConfig<S>>): RxNStoreImpl<S>;
export declare function IRS<S extends IBS>(initiator: S, config?: ReactiveConfig): RxImStoreImpl<S>;
export { bound, isObject, isPrimitive, shallowClone, shallowCompare };