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

Volar doesn't validate props of functional component #2251

Closed
gordilovvv opened this issue Dec 23, 2022 · 2 comments
Closed

Volar doesn't validate props of functional component #2251

gordilovvv opened this issue Dec 23, 2022 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@gordilovvv
Copy link

gordilovvv commented Dec 23, 2022

Version: 1.0.16

For example, we have same function

function Test({ foo }: { foo: string }) {
    return <div>test</div>
}

And volar doesn't throw error on wrong usage

<Test foo="{}" />

But it works good in v0.40.13

@gordilovvv
Copy link
Author

gordilovvv commented Dec 23, 2022

The same problem #2206

@johnsoncodehk
Copy link
Member

Duplicate of #2206

@johnsoncodehk johnsoncodehk marked this as a duplicate of #2206 Dec 25, 2022
@johnsoncodehk johnsoncodehk added the duplicate This issue or pull request already exists label Dec 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants