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

x/rimbu/actor/main/index.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@1.1.0/actor/main/index.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; }