Skip to main content
Module

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