How to define type for error in Redux RTK Api Slice
I want to set the type for an error in the Redux RTK API Slice
React Redux Toolkit Typescript: action with optional payload
what I’m trying to get is to reach this behavior:
I want to set the type for an error in the Redux RTK API Slice
what I’m trying to get is to reach this behavior: