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

x/rimbu/actor/main/actor.ts>Actor.configure

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function Actor.configure
import { Actor } from "https://deno.land/x/rimbu@0.14.0/actor/main/actor.ts";
const { configure } = Actor;

Type Parameters

S
optional
D extends Actor.DispatchFunction = (action: ActionBase) => void
optional
AC extends Actor.ActionsDefinition = Record<string, never>
optional
EnhancedActor extends Actor.Dispatch<any> & Actor.Actions<any> & { actionCreators: AC; } = Actor<S, D, AC> & { actionCreators: AC; }

Parameters

config: { reducer: Actor.ActionReducer<S>; actions?: AC | undefined; middleware?: (actor: Actor<S, (action: ActionBase) => void, any>) => D; enhancer?: (actor: Actor<S, D, AC> & { actionCreators: AC; }) => EnhancedActor; }