nytimes / react-tracking

🎯 Declarative tracking for React apps.
https://open.nytimes.com/introducing-react-tracking-declarative-tracking-for-react-apps-2c76706bb79a
Other
1.88k stars 123 forks source link

Typescript types not up to date for V8 #173

Closed mattes3 closed 3 years ago

mattes3 commented 3 years ago

Hi,

the typescript types are not up to date. They correspond to version 7. They are missing the property Track in the object that is returned by the useTracking() hook.

Could you please add that?

Thanks... Matthias

tizmagik commented 3 years ago

Thanks, dupe of #172 -- TypeScript types via Definitely Typed are a community-driven effort currently. Although we do have plans to rewrite the internals to TypeScript and thus export type definitions directly (see #152 for WIP or if you'd like to contribute)