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

x/rimbu/actor/main/index.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.14.0/actor/main/index.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