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

x/rimbu/actor/main/action.ts>Action.create

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

Returns a new action creator instance that can be used to create Action instances.

type

{ <P = void>(config?: { type?: string; createTag?: () => string; createPayload?: never; }): Action.Creator<P, [P]>; <P, A extends unknown[]>(config?: { type?: string; createTag?: () => string; createPayload: (...args: A) => P; }): Action.Creator<P, A>; }