elgorditosalsero / react-gtm-hook

Easily manage the Google Tag Manager via Hook
https://elgorditosalsero-react-gtm-hook.netlify.app/
MIT License
220 stars 28 forks source link

Commit Message: Update GTMContextDispatch createContext type definition #74

Closed sin-to-jin closed 1 year ago

sin-to-jin commented 1 year ago

Summary

This commit updates the type definition for the GTMContextDispatch createContext to use the more specific typeof sendToGTM instead of any. This improves type safety and helps to catch any potential errors earlier in the development process.