import { SliceConfig } from "https://deno.land/x/rimbu@1.1.0/actor/main/slice-config.ts";
const { configure } = SliceConfig;
Returns a configured object that can be used to produce slices with the given configuration.
Type Parameters
C extends SliceConfig
Parameters
config: { applyHandler: SliceConfig.ApplyHandler<C>; applyIncluder: SliceConfig.ApplyIncluder<C>; applyHandlerResult: SliceConfig.ApplyHandlerResult<C>; createAction: (sliceName: string, actionName: string) => C["_ACTION_CREATOR"]; }
- the configuration for the slice creator.
Returns
{ create<S, LU extends SliceConfig.ActionDefinition<S, C>>(config: LU & { name?: string; initState: OptLazy<S>; includeActions?: (includer: SliceConfig.ActionIncluder<S, C>) => SliceConfig.ActionIncluderResult<S, C>; }): Slice<S, SliceConfig.SliceActions<LU["actions"], C>>; }