We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would seem that typescript treats anything between curly braces in tsx expressions as any.
There is no option on the JSX namespace that I know of that allows restricting the result of expressions to certain types.
TypeScript Version: 2.2.1
Code
var div = <div> {new Date()} </div>
This always compiles. How do I prevent certain types from being validated there ? Should there be a modification of the JSX namespace ?
The text was updated successfully, but these errors were encountered:
Duplicate #13618
Sorry, something went wrong.
No branches or pull requests
It would seem that typescript treats anything between curly braces in tsx expressions as any.
There is no option on the JSX namespace that I know of that allows restricting the result of expressions to certain types.
TypeScript Version: 2.2.1
Code
This always compiles. How do I prevent certain types from being validated there ? Should there be a modification of the JSX namespace ?
The text was updated successfully, but these errors were encountered: