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

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