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

x/rimbu/actor/main/slice.ts>Slice

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace Slice
import { Slice } from "https://deno.land/x/rimbu@0.14.0/actor/main/slice.ts";

Functions

Returns an object containing the combined reducer and action creators from the given input object.

Type Aliases

Utility type to extract the state type from a given slice type.

type alias Slice
import { type Slice } from "https://deno.land/x/rimbu@0.14.0/actor/main/slice.ts";

An actor slice containing an action reducer for state of type S, and potentially action definitions.

Type Parameters

S
optional
ACS = Record<string, never>
definition: { readonly reducer: Actor.ActionReducer<S>; readonly actions: ACS; }