@laserware/stasis
    Preparing search index...

    Variable createSliceConst

    createSlice: <
        State,
        CaseReducers extends SliceCaseReducers<State>,
        Name extends string,
        Selectors extends SliceSelectors<State>,
        ReducerPath extends string = Name,
    >(
        options: CreateSliceOptions<
            State,
            CaseReducers,
            Name,
            ReducerPath,
            Selectors,
        >,
    ) => Slice<State, CaseReducers, Name, ReducerPath, Selectors>

    A function that accepts an initial state, an object full of reducer functions, and a "slice name", and automatically generates action creators and action types that correspond to the reducers and state.

    Type declaration