mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-02-27 12:16:36 +00:00
8 lines
376 B
TypeScript
8 lines
376 B
TypeScript
import { createAsyncThunk as baseCreateAsyncThunk, AsyncThunkPayloadCreator } from '@reduxjs/toolkit';
|
|
import { ShlinkState } from '../../container/types';
|
|
|
|
export const createAsyncThunk = <Returned, ThunkArg>(
|
|
typePrefix: string,
|
|
payloadCreator: AsyncThunkPayloadCreator<Returned, ThunkArg, { state: ShlinkState }>,
|
|
) => baseCreateAsyncThunk(typePrefix, payloadCreator);
|