DEV Community

loading...

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

Collapse
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".

Collapse
msholtyfd profile image
Michael Sholty Author

Yep, this article was purely a thought exercise ✌🏻