- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.1k
          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
  
    JSX and as operator
  
  #3564
                      Changes from all commits
556cb70
              a4045e5
              6dfe3d7
              195db03
              f5336db
              6d01a44
              e34d8cd
              fa198a5
              2b44dca
              bc9b53a
              a5c44a3
              46eb521
              b0750c2
              388e73f
              2555344
              e448d8b
              c9a925e
              16c8344
              5bc10b9
              b3ca009
              65828c4
              8180b7d
              b1a05b8
              306de4d
              ce6f39e
              042f1fc
              634d35a
              1d09c6e
              3402f35
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| 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": { | ||
| 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  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? 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 | ||
| } | ||
| } | ||
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?