Here's how the options are validated in react-scan source code.
In this article, we analyze how the options you pass into scan function are validated.            ...
Tags: opensource, javascript, react, reactscan