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

x/rimbu/actor/main/internal.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@1.1.0/actor/main/internal.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