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

Type constraints are being removed #47

Closed
vwong opened this issue Nov 5, 2023 · 1 comment · Fixed by #48
Closed

Type constraints are being removed #47

vwong opened this issue Nov 5, 2023 · 1 comment · Fixed by #48
Labels

Comments

@vwong
Copy link

vwong commented Nov 5, 2023

Version: 3.0.1

prettier: 3.0.3
prettier-plugin-marko: 3.0.1.

Details

I'm trying to type generic tags, but prettier keeps removing the types.

Expected Behavior

Given a tag with generic inputs, when trying to constrain it:

<my-tag<MyType> my-attr="my-string" />

When running prettier;
Then the tag should be prettified somehow.

Actual Behavior

The type is stripped:

<my-tag my-attr="my-string" />

After which mtc complains about, incorrect/missing types.

Your Environment

This seems to happen with my own tags, as well as tags from the tags-api-preview (where I first discovered it)

Copy link

🎉 This issue has been resolved in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant