createAsyncThunktype
createAsyncThunktype is a TypeScript pattern used to describe the type of an asynchronous thunk action in Redux-like workflows. It is intended to reflect the behavior of thunks that dispatch a pending action, perform an asynchronous operation, and then dispatch either a fulfilled or rejected action. The pattern aims to provide precise typing for the thunk’s argument, the payload of the fulfilled result, and the error payload.
The type helper typically yields several related types: the argument type A, the result type R, and
Usage patterns involve defining the argument, result, and error types and then deriving a thunk type from
Limitations include that createAsyncThunktype is a typing aid and does not implement runtime behavior. It may