@rbxts/create-slice
Version:
Helpful function to easily define rodux reducers.
8 lines (7 loc) • 327 B
TypeScript
import type { CreateSliceOptions, Slice, SliceCaseReducers } from "./types";
/**
*
* @param options
* @returns
*/
export declare function createSlice<State, Name extends string, CaseReducers extends SliceCaseReducers<State>>(options: CreateSliceOptions<State, Name, CaseReducers>): Slice<State, Name, CaseReducers>;