snowplow-javascript-tracker
snowplow-javascript-tracker copied to clipboard
Fix youtube tracking typings
Describe the bug The typings on the youtube browser tracking seem to be erroneous and not helpful for TypeScript users.
To Reproduce
Just try adding a captureEvent
option on enableYouTubeTracking
.
E.g.
enableYouTubeTracking({
id: videoId,
options: {
captureEvents: ["error"],
},
});
Expected behavior Types work as expected without errors.
Screenshots
Additional context
Changes in this should can be accompanied with a revision of typings such as EventGroup
in types.ts
which can allow for proper autocompletion in TS (expected DX).