You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/compiler/diagnosticMessages.json
+5-6
Original file line number
Diff line number
Diff line change
@@ -687,7 +687,7 @@
687
687
"category": "Error",
688
688
"code": 1218
689
689
},
690
-
"Experimental support for decorators is a feature that is subject to change in a future release. Specify '--experimentalDecorators' to remove this warning.": {
690
+
"Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.": {
691
691
"category": "Error",
692
692
"code": 1219
693
693
},
@@ -723,6 +723,10 @@
723
723
"category": "Error",
724
724
"code": 1227
725
725
},
726
+
"A type predicate is only allowed in return type position for functions and methods.": {
727
+
"category": "Error",
728
+
"code": 1228
729
+
},
726
730
"A type predicate cannot reference a rest parameter.": {
727
731
"category": "Error",
728
732
"code": 1229
@@ -2745,11 +2749,6 @@
2745
2749
"category": "Error",
2746
2750
"code": 8016
2747
2751
},
2748
-
"'decorators' can only be used in a .ts file.": {
2749
-
"category": "Error",
2750
-
"code": 8017
2751
-
},
2752
-
2753
2752
"Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses.": {
LoopWithCapturedBlockScopedBinding=0x00010000,// Loop that contains block scoped variable captured in closure
2038
2040
CapturedBlockScopedBinding=0x00020000,// Block-scoped binding that is captured in some function
2039
2041
BlockScopedBindingInLoop=0x00040000,// Block-scoped binding with declaration nested inside iteration statement
2040
-
HasSeenSuperCall=0x00080000,// Set during the binding when encounter 'super'
2041
-
ClassWithBodyScopedClassBinding=0x00100000,// Decorated class that contains a binding to itself inside of the class body.
2042
-
BodyScopedClassBinding=0x00200000,// Binding to a decorated class inside of the class's body.
2043
-
NeedsLoopOutParameter=0x00400000,// Block scoped binding whose value should be explicitly copied outside of the converted loop
2042
+
ClassWithBodyScopedClassBinding=0x00080000,// Decorated class that contains a binding to itself inside of the class body.
2043
+
BodyScopedClassBinding=0x00100000,// Binding to a decorated class inside of the class's body.
2044
+
NeedsLoopOutParameter=0x00200000,// Block scoped binding whose value should be explicitly copied outside of the converted loop
2044
2045
}
2045
2046
2046
2047
/* @internal */
@@ -2060,6 +2061,8 @@ namespace ts {
2060
2061
importOnRightSide?: Symbol;// for import declarations - import that appear on the right side
2061
2062
jsxFlags?: JsxFlags;// flags for knowing what kind of element/attributes we're dealing with
2062
2063
resolvedJsxType?: Type;// resolved element attributes type of a JSX openinglike element
2064
+
hasSuperCall?: boolean;// recorded result when we try to find super-call. We only try to find one if this flag is undefined, indicating that we haven't made an attempt.
2065
+
superCall?: ExpressionStatement;// Cached first super-call found in the constructor. Used in checking whether super is called before this-accessing
2063
2066
}
2064
2067
2065
2068
exportconstenumTypeFlags{
@@ -2095,7 +2098,6 @@ namespace ts {
2095
2098
ESSymbol=0x01000000,// Type of symbol primitive introduced in ES6
2096
2099
ThisType=0x02000000,// This type
2097
2100
ObjectLiteralPatternWithComputedProperties=0x04000000,// Object literal type implied by binding pattern has computed properties
2098
-
PredicateType=0x08000000,// Predicate types are also Boolean types, but should not be considered Intrinsics - there's no way to capture this with flags
tests/cases/conformance/declarationEmit/typePredicates/declarationEmitIdentifierPredicatesWithPrivateName01.ts(6,33): error TS4060: Return type of exported function has or is using private name 'I'.
0 commit comments