Reactjs – Complex conditional types in typescript, narrowing, and `extends` keyword
I have searched a lot and read several question to find a solution to my problem but in no vain. Can you help me?! What I don't understand is that when a type extends boolean and put in the if…