Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(analytics-types): update Element in element interactions #877

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

Mercy811
Copy link
Contributor

Summary

This PR fixes the issue in #780 that Element type is resolved to the custom defined type because typescript looks up local scope first before global scope.

Create a custom type DomElement if Element is available (dom library is added) otherwise set to never.

  • analytics-browser, plugin-autocapture-browser will use Element
  • analytics-node doesn't have access to Element and will use never instead

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?:

@Mercy811 Mercy811 merged commit d501ef6 into main Sep 17, 2024
3 checks passed
@Mercy811 Mercy811 deleted the AMP-108260-element branch September 17, 2024 22:25
@sabin10
Copy link

sabin10 commented Oct 9, 2024

FYI this update is breaking: #883

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.

3 participants