Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/actor/mod.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.13.1/actor/mod.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; }