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

split strictTemplate into two distinct options for props and component import #4879

Open
victorgarciaesgi opened this issue Sep 25, 2024 · 0 comments · May be fixed by #4880
Open

split strictTemplate into two distinct options for props and component import #4879

victorgarciaesgi opened this issue Sep 25, 2024 · 0 comments · May be fixed by #4880
Labels
feature request Request new features

Comments

@victorgarciaesgi
Copy link

What problem does this feature solve?

First, thanks again for your amazing work on vue-tsc, nothing is greater than to be type safe in a Vue environnement.
In our codebase we want to gradually make component imports safer, and currently an undeclared Component is marked as unknown.
Activating strictTemplates: true resolve this, but also activates the strict prop typechecking, which we currently can't handle in our codebase.
We are then currently blocked on this subject as we would like to gradually upgrade a safer props types but will be too much work for now.

What does the proposed solution look like?

The solution could be to split the strictTemplate into two options, or to add a two new ones strictProps and strictComponentImports, to cherry pick which one we want.

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

Successfully merging a pull request may close this issue.

1 participant