DEV Community


Discussion on: Using TypeScript to guard against specific React prop combinations

svitekpavel profile image
Pavel Svitek

Of course, this is usual usage. But let's imagine a situation where you would like to restrict combination of parameters to a function which doesn't represent the same "type".

msholtyfd profile image
Michael Sholty Author

Yep, this article was purely a thought exercise ✌🏻