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: