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: broken types with array literal and object entries #96

Merged
merged 5 commits into from
Jul 28, 2023

Conversation

harlan-zw
Copy link
Contributor

Issue

nuxt-modules/og-image#48

When we mix literal types with objects, then the generated TS is broken.

Solution

The reason why this fails is because the object type is mapped to an empty string. We need logic to handle this edge-case.

We explicitly check for mixing literals with objects and revert to the object to the default object type.

@harlan-zw harlan-zw requested a review from pi0 June 2, 2023 10:54
@harlan-zw
Copy link
Contributor Author

Seems like the linter is broken?

@pi0
Copy link
Member

pi0 commented Jul 28, 2023

Thanks and sorry it was delayed!

@pi0 pi0 merged commit 6f1098b into main Jul 28, 2023
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