Skip to main content
Module

x/rimbu/actor/mod.ts>SliceConfig.ApplyHandler

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias SliceConfig.ApplyHandler
import { type SliceConfig } from "https://deno.land/x/rimbu@0.13.1/actor/mod.ts";
const { ApplyHandler } = SliceConfig;

Function type to use to apply the given action handler.

definition: <S>(
state: S,
action: (C & { _STATE: S; })["_ACTION_TYPE"],
handler: (C & { _STATE: S; })["_ACTION_HANDLER"],
) => (C & { _STATE: S; })["_ACTION_HANDLER_RESULT"]