You can achieve this using conditional types; check the answer here https://stackoverflow.com/a/49262929/4800808
CLICK HERE to find out more related problems solutions.
You can achieve this using conditional types; check the answer here https://stackoverflow.com/a/49262929/4800808
CLICK HERE to find out more related problems solutions.