Skip to main content
Module

x/rimbu/actor/mod.ts>Slice.StateType

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

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

Type Parameters

SL extends Slice<any, any>
definition: SL["reducer"] extends Actor.ActionReducer<infer S> ? S : unknown