Modified the method parameter type from a generic string to a stricter type definition.
This stricter type definition allows developers to intuitively understand available methods without referring to external documentation.
As a result, this enhances code readability, improves DX, and minimizes the chances of bugs due to incorrect method invocations.
Modified the method parameter type from a generic string to a stricter type definition. This stricter type definition allows developers to intuitively understand available methods without referring to external documentation. As a result, this enhances code readability, improves DX, and minimizes the chances of bugs due to incorrect method invocations.
as-is:
to-be:![image](https://github.com/mkuczera/react-native-haptic-feedback/assets/41789633/3b720303-8c14-4fd4-8ba6-158042f34398)