abdalla / react-hotjar

Small component to implement Hotjar into your react application
MIT License
165 stars 32 forks source link

Fix type definition for options prop in initialize function #69

Closed moonjoungyoung closed 7 months ago

moonjoungyoung commented 7 months ago

The type definition for the options prop in the initialize function was incorrect. The prop names 'id' and 'sv' were incorrectly defined as 'hjid' and 'hjsv', respectively, in the type definition.

This discrepancy between the actual prop names and their type definition led to a type error being thrown. To resolve this issue, the type definition has been updated to match the correct prop names.

The incorrect prop names in the type definition have been changed from 'hjid' and 'hjsv' to 'id' and 'sv', aligning them with the actual prop names used in the initialize function.

By fixing the type definition, the code now accurately reflects the expected prop names, eliminating the type error that was occurring.

These changes ensure that the type definition for the options prop in the initialize function is correct and matches the actual prop names being used.