We use the following code to enable compile check and IntelliSense for our redux reducers:
It is in a .ts file and not .tsx (https://stackov
.ts
.tsx