Skip to main content
Module

x/rimbu/actor/mod.ts>ActionBase.Creator

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

Defines how to create an action, and specifies the mandatory match function to determine whether an action matches the creator.

Type Parameters

AC extends ActionBase
A extends unknown[]

Call Signatures

(...args: A): AC

Creates a new action given the creation arguments.

Properties

readonly
actionTag: string

The (unique) action creator tag, which is passed on to created actions.

Methods

match(action: ActionBase): action is AC

Returns true if the given action is created by the current creator.