Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 13.7k
JSX and as operator#3564
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
Uh oh!
There was an error while loading. Please reload this page.
JSX and as operator
#3564
Changes from all commits
556cb70a4045e56dfe3d7195db03f5336db6d01a44e34d8cdfa198a52b44dcabc9b53aa5c44a346eb521b0750c2388e73f2555344e448d8bc9a925e16c83445bc10b9b3ca00965828c48180b7db1a05b8306de4dce6f39e042f1fc634d35a1d09c6e3402f35File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -638,7 +638,7 @@ | ||
| "Experimental support for decorators is a feature that is subject to change in a future release. Specify '--experimentalDecorators' to remove this warning.": { | ||
| "category": "Error", | ||
| "code": 1219 | ||
| }, | ||
| }, | ||
| "Generators are only available when targeting ECMAScript 6 or higher.": { | ||
| "category": "Error", | ||
| "code": 1220 | ||
| @@ -1519,6 +1519,47 @@ | ||
| "code": 2510 | ||
| }, | ||
| "JSX element attributes type '{0}' must be an object type.": { | ||
| "category": "Error", | ||
| "code": 2600 | ||
| }, | ||
| "The return type of a JSX element constructor must return an object type.": { | ||
| "category": "Error", | ||
| "code": 2601 | ||
| }, | ||
| "JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist.": { | ||
| "category": "Error", | ||
| "code": 2602 | ||
| }, | ||
| "Property '{0}' in type '{1}' is not assignable to type '{2}'": { | ||
| "category": "Error", | ||
| "code": 2603 | ||
| }, | ||
| "JSX element type '{0}' does not have any construct or call signatures.": { | ||
| "category": "Error", | ||
| "code": 2604 | ||
| }, | ||
| "JSX element type '{0}' is not a constructor function for JSX elements.": { | ||
| "category": "Error", | ||
| "code": 2605 | ||
| }, | ||
| "Property '{0}' of JSX spread attribute is not assignable to target property.": { | ||
| "category": "Error", | ||
| "code": 2606 | ||
| }, | ||
| "JSX element class does not support attributes because it does not have a '{0}' property": { | ||
| "category": "Error", | ||
| "code": 2607 | ||
| }, | ||
| "The global type 'JSX.{0}' may not have more than one property": { | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Put single quotes around MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see what you're referring to? Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I may be losing my mind; when I wrote that, I did not see the single quotes. | ||
| "category": "Error", | ||
| "code": 2608 | ||
| }, | ||
| "Cannot emit namespaced JSX elements in React": { | ||
| "category": "Error", | ||
| "code": 2650 | ||
| }, | ||
| "Import declaration '{0}' is using private name '{1}'.": { | ||
| "category": "Error", | ||
| "code": 4000 | ||
| @@ -1887,7 +1928,7 @@ | ||
| "category": "Error", | ||
| "code": 5050 | ||
| }, | ||
| "Option 'inlineSources' can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.": { | ||
| "Option 'inlineSources' can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.": { | ||
| "category": "Error", | ||
| "code": 5051 | ||
| }, | ||
| @@ -2076,14 +2117,22 @@ | ||
| "category": "Message", | ||
| "code": 6060 | ||
| }, | ||
| "NEWLINE": { | ||
| "category": "Message", | ||
| "NEWLINE": { | ||
| "category": "Message", | ||
| "code": 6061 | ||
| }, | ||
| "Argument for '--newLine' option must be 'CRLF' or 'LF'.": { | ||
| "category": "Error", | ||
| "category": "Error", | ||
| "code": 6062 | ||
| }, | ||
| "Specify JSX code generation: 'preserve' or 'react'": { | ||
| "category": "Message", | ||
| "code": 6080 | ||
| }, | ||
| "Argument for '--jsx' must be 'preserve' or 'react'.": { | ||
| "category": "Message", | ||
| "code": 6081 | ||
| }, | ||
| "Option 'experimentalDecorators' must also be specified when option 'emitDecoratorMetadata' is specified.": { | ||
| "category": "Error", | ||
| "code": 6064 | ||
| @@ -2161,6 +2210,12 @@ | ||
| "category": "Error", | ||
| "code": 7025 | ||
| }, | ||
| "JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists": { | ||
| "category": "Error", | ||
| "code": 7026 | ||
| }, | ||
| "You cannot rename this element.": { | ||
| "category": "Error", | ||
| "code": 8000 | ||
| @@ -2228,5 +2283,34 @@ | ||
| "'decorators' can only be used in a .ts file.": { | ||
| "category": "Error", | ||
| "code": 8017 | ||
| }, | ||
| "Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses.": { | ||
| "category": "Error", | ||
| "code": 9002 | ||
| }, | ||
| "'class' expressions are not currently supported.": { | ||
| "category": "Error", | ||
| "code": 9003 | ||
| }, | ||
| "JSX attributes must only be assigned a non-empty 'expression'.": { | ||
| "category": "Error", | ||
| "code": 17000 | ||
| }, | ||
| "JSX elements cannot have multiple attributes with the same name.": { | ||
| "category": "Error", | ||
| "code": 17001 | ||
| }, | ||
| "Expected corresponding JSX closing tag for '{0}'.": { | ||
| "category": "Error", | ||
| "code": 17002 | ||
| }, | ||
| "JSX attribute expected.": { | ||
| "category": "Error", | ||
| "code": 17003 | ||
| }, | ||
| "Cannot use JSX unless the '--jsx' flag is provided.": { | ||
| "category": "Error", | ||
| "code": 17004 | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should "expression" have single quotes around it?