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

If there is an optional property prop1 for a react component, specifying prop1-={value} is not giving type error #46225

Closed
pateltejas opened this issue Oct 5, 2021 · 2 comments
Labels
Question An issue which isn't directly actionable in code

Comments

@pateltejas
Copy link

Example

I have a prop named prop1, however I have a typo where I have a - after prop name, i.e prop1-={value}, but TS is not giving error. On other hand if I give in an unknown property, it does throw error. Wonder why is -= being considered valid assignment to the prop?

@MartinJohns
Copy link
Contributor

You forgot to fill out the issue template. Duplicate of #32447.

@andrewbranch andrewbranch added the Question An issue which isn't directly actionable in code label Oct 5, 2021
@typescript-bot
Copy link
Collaborator

This issue has been marked as 'Question' and has seen no recent activity. It has been automatically closed for house-keeping purposes. If you're still waiting on a response, questions are usually better suited to stackoverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question An issue which isn't directly actionable in code
Projects
None yet
Development

No branches or pull requests

4 participants