I am exploring redux-toolkit library recently but facing difficulty about type declaration of the createAction function as shown below.
redux-toolkit
createAction