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

Wrong Types for gtag function params #320

Closed
mod08 opened this issue Nov 18, 2024 · 1 comment · Fixed by unjs/unhead#415
Closed

Wrong Types for gtag function params #320

mod08 opened this issue Nov 18, 2024 · 1 comment · Fixed by unjs/unhead#415
Assignees
Labels
bug Something isn't working

Comments

@mod08
Copy link

mod08 commented Nov 18, 2024

🐛 The bug

The tuple type for the gtag function params contains only [fn: 'config', opt: 'reset'] which is the last definition in the GTag interface from the library 'third-party-capital'.

I wasn't able to reproduce it in stackblitz because the types didn't work at all. I've testet in the nuxt-script Playground.

Image

🛠️ To reproduce

🌈 Expected behavior

Infer the correct types based on the first argument of the function.

ℹ️ Additional context

No response

@mod08 mod08 added the bug Something isn't working label Nov 18, 2024
@huang-julien huang-julien self-assigned this Nov 18, 2024
@KieronWiltshire
Copy link

I'm also getting this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants