Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/actor/main/internal.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@1.1.0/actor/main/internal.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"]