Skip to content

Conversation

@MO-Thibault
Copy link
Contributor

No description provided.


window.googletag = window.googletag || { cmd: [] };
const gpt = window.googletag;
const gpt = (window as any).googletag;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is disabling type safety, can we do without the any cast like it use to be? what's missing in type definitions?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I imagine the problem is the typing of GptEventSpec (mostly strings) which is not compatible with what addEventListener expects (likely well known event types)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

linter technically was showing window as errored but I know it builds anyway. I can remove.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's address it separately

@zapo zapo merged commit 6cda3d7 into Optable:master Dec 1, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants