@reduxjs/toolkit#CreateSliceOptions TypeScript Examples

The following examples show how to use @reduxjs/toolkit#CreateSliceOptions. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: toolkit.tsx    From oasis-wallet-web with Apache License 2.0 6 votes vote down vote up
createSlice = <
  State,
  CaseReducers extends SliceCaseReducers<State>,
  Name extends RootStateKeyType,
>(
  options: CreateSliceOptions<State, CaseReducers, Name>,
) => {
  return createSliceOriginal(options)
}
Example #2
Source File: toolkit.tsx    From react-boilerplate-cra-template with MIT License 6 votes vote down vote up
createSlice = <
  State,
  CaseReducers extends SliceCaseReducers<State>,
  Name extends RootStateKeyType,
>(
  options: CreateSliceOptions<State, CaseReducers, Name>,
) => {
  return createSliceOriginal(options);
}
Example #3
Source File: toolkit.tsx    From datart with Apache License 2.0 5 votes vote down vote up
createSlice = <
  State,
  CaseReducers extends SliceCaseReducers<State>,
  Name extends RootStateKeyType,
>(
  options: CreateSliceOptions<State, CaseReducers, Name>,
) => createSliceOriginal(options)