You are on page 1of 1

TypeScript 2.

1 现已发布。现在下载 (/#download-links)我们最新版本!

文档目录

错误信息列表

code 类型 英文描述 中文描述

1002 错误 U nterminated s tring literal. 未终止的字符串文本。

1003 错误 I dentifier expec ted. 应为标识符。

1005 错误 '{0 }' expec ted. 应为“{0 }”。

1006 错误 A file c annot have a referenc e to its elf. 文件不能引用自身。

1009 错误 Trailing c omma not allowed. 不允许使用尾随逗号。

1010 错误 '* /' expec ted. 应为 " * /" 。

1012 错误 U nexpec ted token. 意外的标记。

A res t parameter mus t be las t in a


1014 错误 res t 参数必须是参数列表中的最后一个参数。
parameter lis t.

P arameter c annot have ques tion mark


1015 错误 参数不能包含问号和初始化表达式。
and initializer.

A required parameter c annot follow an


1016 错误 必选参数不能位于可选参数后。
optional parameter.

A n index s ignature c annot have a res t


1017 错误 索引签名不能包含 res t 参数。
parameter.

A n index s ignature parameter c annot


1018 错误 索引签名参数不能具有可访问性修饰符。
have an ac c es s ibility modifier.

A n index s ignature parameter c annot


1019 错误 索引签名参数不能包含问号。
have a ques tion mark.

A n index s ignature parameter c annot


1020 错误 索引签名参数不能具有初始化表达式。
have an initializer.

A n index s ignature mus t have a type


1021 错误 索引签名必须具有类型批注。
annotation.

A n index s ignature parameter mus t


1022 错误 索引签名参数必须具有类型批注。
have a type annotation.

A n index s ignature parameter type


1023 错误 索引签名参数类型必须为 " s tring" 或 " number" 。
mus t be 's tring' or 'number'.

'readonly' modifier c an only appear on a


1024 错误
property dec laration or index s ignature.

1028 错误 A c c es s ibility modifier already s een. 已看到可访问性修饰符。

'{0 }' modifier mus t prec ede '{1 }'


1029 错误 “{0 }”修饰符必须位于“{1 }”修饰符之前。
modifier.

1030 错误 '{0 }' modifier already s een. 已看到“{0 }”修饰符。

'{0 }' modifier c annot appear on a c las s


1031 错误 “{0 }”修饰符不能出现在类元素上。
element.

's uper' mus t be followed by an argument


1034 错误 " s uper" 的后面必须是参数列表或成员访问。
lis t or member ac c es s .

O nly ambient modules c an us e quoted


1035 错误 仅环境模块可使用带引号的名称。
names .

Statements are not allowed in ambient


1036 错误 不允许在环境上下文中使用语句。
c ontexts .

A 'dec lare' modifier c annot be us ed in


1038 错误 不能在已有的环境上下文中使用 " dec lare" 修饰符。
an already ambient c ontext.

I nitializers are not allowed in ambient


1039 错误 不允许在环境上下文中使用初始化表达式。
c ontexts .

'{0 }' modifier c annot be us ed in an


1040 错误 “{0 }”修饰符不能在环境上下文中使用。
ambient c ontext.

'{0 }' modifier c annot be us ed with a


1041 错误 “{0 }”修饰符不能与类声明一起使用。
c las s dec laration.

1042 错误 '{0 }' modifier c annot be us ed here. “{0 }”修饰符不能在此处使用。

'{0 }' modifier c annot appear on a data


1043 错误 “{0 }”修饰符不能出现在数据属性上。
property.

'{0 }' modifier c annot appear on a


1044 错误 “{0 }”修饰符不能出现在模块元素上。
module or names pac e element.

A '{0 }' modifier c annot be us ed with an


1045 错误 “{0 }”修饰符不能与接口声明一起使用。
interfac e dec laration.

A 'dec lare' modifier is required for a top


1046 错误 在 .d.ts 文件中的顶层声明需要 " dec lare" 修饰符。
level dec laration in a .d.ts file.

1047 错误 A res t parameter c annot be optional. res t 参数不能为可选参数。

A res t parameter c annot have an


1048 错误 res t 参数不能具有初始化表达式。
initializer.

A 's et' ac c es s or mus t have exac tly one


1049 错误 " s et" 访问器必须正好具有一个参数。
parameter.

A 's et' ac c es s or c annot have an


1051 错误 " s et" 访问器不能具有可选参数。
optional parameter.

A 's et' ac c es s or parameter c annot have


1052 错误 " s et" 访问器参数不能包含初始化表达式。
an initializer.

A 's et' ac c es s or c annot have res t


1053 错误 " s et" 访问器不能具有 res t 参数。
parameter.

A 'get' ac c es s or c annot have


1054 错误 " get" 访问器不能具有参数。
parameters .

Type '{0 }' is not a valid as ync func tion


return type in E S5 /E S3 bec aus e it does
1055 错误 类型“{0 }”不是有效的异步函数返回类型。
not refer to a P romis e- c ompatible
c ons truc tor value.

A c c es s ors are only available when


1056 错误 访问器仅在面向 E C M A Sc ript 5 和更高版本时可用。
targeting E C M A Sc ript 5 and higher.

A n as ync func tion or method mus t have


1057 错误 异步函数或方法必须具有有效的可等待返回类型。
a valid awaitable return type.

O perand for 'await' does not have a


1058 错误 " await" 的操作数不具有有效的可调用 " then" 成员。
valid c allable 'then' member.

Return expres s ion in as ync func tion


1059 错误 does not have a valid c allable 'then' 异步函数中的返回表达式不具有有效的可调用 " then" 成员。
member.

E xpres s ion body for as ync arrow


1060 错误 func tion does not have a valid c allable 异步箭头函数的表达式主体不具有有效的可调用 " then" 成员。
'then' member.

1061 错误 E num member mus t have initializer. 枚举成员必须具有初始化表达式。

{0 } is referenc ed direc tly or indirec tly


{0 } 在其自身的 " then" 方法的 fulfillment 回调中得到直接
1062 错误 in the fulfillment c allbac k of its own
或间接引用。
'then' method.

A n export as s ignment c annot be us ed


1063 错误 不能在命名空间中使用导出分配。
in a names pac e.

T he return type of an as ync func tion or


T he return type of an as ync func tion or method
1064 错误 method mus t be the global P romis e
mus t be the global P romis e type.
type.

I n ambient enum dec larations member


1066 错误 在环境枚举声明中,成员初始化表达式必须是常数表达式。
initializer mus t be c ons tant expres s ion.

U nexpec ted token. A c ons truc tor,


1068 错误 method, ac c es s or, or property was 意外的标记。应为构造函数、方法、访问器或属性。
expec ted.

'{0 }' modifier c annot appear on a type


1070 错误
member.

'{0 }' modifier c annot appear on an


1071 错误
index s ignature.

A '{0 }' modifier c annot be us ed with an


1079 错误 “{0 }”修饰符不能与导入声明一起使用。
import dec laration.

1084 错误 I nvalid 'referenc e' direc tive s yntax. " referenc e" 指令语法无效。

O c tal literals are not available when


1085 错误 targeting E C M A Sc ript 5 and higher. U s e 面向 E C M A Sc ript 5 和更高版本时,八进制文本不可用。
the s yntax '{0 }'.

A n ac c es s or c annot be dec lared in an


1086 错误 不能在环境上下文中声明访问器。
ambient c ontext.

'{0 }' modifier c annot appear on a


1089 错误 “{0 }”修饰符不能出现在构造函数声明中。
c ons truc tor dec laration.

'{0 }' modifier c annot appear on a


1090 错误 “{0 }”修饰符不能出现在参数中。
parameter.

O nly a s ingle variable dec laration is


1091 错误 " for...in" 语句中只允许单个变量声明。
allowed in a 'for...in' s tatement.

Type parameters c annot appear on a


1092 错误 类型参数不能出现在构造函数声明中。
c ons truc tor dec laration.

Type annotation c annot appear on a


1093 错误 类型批注不能出现在构造函数声明中。
c ons truc tor dec laration.

A n ac c es s or c annot have type


1094 错误 访问器不能具有类型参数。
parameters .

A 's et' ac c es s or c annot have a return


1095 错误 " s et" 访问器不能具有返回类型批注。
type annotation.

A n index s ignature mus t have exac tly


1096 错误 索引签名必须正好具有一个参数。
one parameter.

1097 错误 '{0 }' lis t c annot be empty. “{0 }”列表不能为空。

1098 错误 Type parameter lis t c annot be empty. 类型参数列表不能为空。

1099 错误 Type argument lis t c annot be empty. 类型参数列表不能为空。

1100 错误 I nvalid us e of '{0 }' in s tric t mode. 严格模式下“{0 }”的使用无效。

'with' s tatements are not allowed in


1101 错误 严格模式下不允许使用 " with" 语句。
s tric t mode.

'delete' c annot be c alled on an identifier


1102 错误 在严格模式下,无法对标识符调用 " delete" 。
in s tric t mode.

A 'c ontinue' s tatement c an only be


1104 错误 us ed within an enc los ing iteration " c ontinue" 语句只能在封闭迭代语句内使用。
s tatement.

A 'break' s tatement c an only be us ed


1105 错误 within an enc los ing iteration or s witc h " break" 语句只能在封闭迭代或 s witc h 语句内使用。
s tatement.

J ump target c annot c ros s func tion


1107 错误 跳转目标不能跨越函数边界。
boundary.

A 'return' s tatement c an only be us ed


1108 错误 " return" 语句只能在函数体中使用。
within a func tion body.

1109 错误 E xpres s ion expec ted. 应为表达式。

1110 错误 Type expec ted. 应为类型。

A 'default' c laus e c annot appear more


1113 错误 " default" 子句在 " s witc h" 语句中只能出现一次。
than onc e in a 's witc h' s tatement.

1114 错误 D uplic ate label '{0 }' 标签“{0 }”重复

A 'c ontinue' s tatement c an only jump to


1115 错误 a label of an enc los ing iteration " c ontinue" 语句只能跳转到封闭迭代语句的标签。
s tatement.

A 'break' s tatement c an only jump to a


1116 错误 " break" 语句只能跳转到封闭语句的标签。
label of an enc los ing s tatement.

A n objec t literal c annot have multiple


1117 错误 properties with the s ame name in s tric t 严格模式下,对象文字不能包含多个具有相同名称的属性。
mode.

A n objec t literal c annot have multiple


1118 错误 对象文字不能具有多个具有相同名称的 get/s et 访问器。
get/s et ac c es s ors with the s ame name.

A n objec t literal c annot have property


1119 错误 对象文字不能包含具有相同名称的属性和访问器。
and ac c es s or with the s ame name.

A n export as s ignment c annot have


1120 错误 导出分配不能具有修饰符。
modifiers .

O c tal literals are not allowed in s tric t


1121 错误 严格模式下不允许使用八进制文本。
mode.

A tuple type element lis t c annot be


1122 错误 元组类型元素列表不能为空。
empty.

Variable dec laration lis t c annot be


1123 错误 变量声明列表不能为空。
empty.

1124 错误 D igit expec ted. 应为数字。

1125 错误 H exadec imal digit expec ted. 应为十六进制数字。

1126 错误 U nexpec ted end of text. 文本意外结束。

1127 错误 I nvalid c harac ter. 无效的字符。

1128 错误 D ec laration or s tatement expec ted. 应为声明或语句。

1129 错误 Statement expec ted. 应为语句。

1130 错误 'c as e' or 'default' expec ted. 应为 " c as e" 或 " default" 。

1131 错误 P roperty or s ignature expec ted. 应为属性或签名。

1132 错误 E num member expec ted. 应为枚举成员。

1134 错误 Variable dec laration expec ted. 应为变量声明。

1135 错误 A rgument expres s ion expec ted. 应为参数表达式。

1136 错误 P roperty as s ignment expec ted. 应为属性分配。

1137 错误 E xpres s ion or c omma expec ted. 应为表达式或逗号。

1138 错误 P arameter dec laration expec ted. 应为参数声明。

1139 错误 Type parameter dec laration expec ted. 应为类型参数声明。

1140 错误 Type argument expec ted. 应为类型参数。

1141 错误 String literal expec ted. 应为字符串文本。

1142 错误 L ine break not permitted here. 不允许在此处换行。

1144 错误 '{' or ';' expec ted. 应为 " {" 或 " ;" 。

1146 错误 D ec laration expec ted. 应为声明。

I mport dec larations in a names pac e


1147 错误 命名空间中的导入声明不能引用模块。
c annot referenc e a module.

C annot c ompile modules unles s the '- - module' flag


C annot us e imports , exports , or module
is provided with a valid module type. C ons ider
1148 错误 augmentations when '- - module' is
s etting the 'module' c ompiler option in a
'none'.
'ts c onfig.js on' file.

File name '{0 }' differs from already


1149 错误 文件名“{0 }”仅在大小写方面与包含的文件名“{1 }”不同
inc luded file name '{1 }' only in c as ing

'new T []' c annot be us ed to c reate an


1150 错误 " new T []" 不能用于创建数组。请改用 " new A rray ()" 。
array. U s e 'new A rray ()' ins tead.

1155 错误 'c ons t' dec larations mus t be initialized 必须初始化 " c ons t" 声明

'c ons t' dec larations c an only be


1156 错误 " c ons t" 声明只能在块的内部声明。
dec lared ins ide a bloc k.

'let' dec larations c an only be dec lared


1157 错误 " let" 声明只能在块的内部声明。
ins ide a bloc k.

1160 错误 U nterminated template literal. 未终止的模板文本。

1161 错误 U nterminated regular expres s ion literal. 未终止的正则表达式文本。

A n objec t member c annot be dec lared


1162 错误 对象成员无法声明为可选。
optional.

A 'yield' expres s ion is only allowed in a


1163 错误 只允许在生成器正文中使用 " yield" 表达式。
generator body.

C omputed property names are not


1164 错误 枚举中不允许计算属性名。
allowed in enums .

A c omputed property name in an


1165 错误 ambient c ontext mus t direc tly refer to a 环境上下文中的计算属性名必须直接引用内置符号。
built- in s ymbol.

A c omputed property name in a c las s


1166 错误 property dec laration mus t direc tly refer 类属性声明中的计算属性名必须直接引用内置符号。
to a built- in s ymbol.

A c omputed property name in a method


1168 错误 overload mus t direc tly refer to a built- in 方法重载中的计算属性名必须直接引用内置符号。
s ymbol.

A c omputed property name in an


1169 错误 interfac e mus t direc tly refer to a built- in 接口中的计算属性名必须直接引用内置符号。
s ymbol.

A c omputed property name in a type


1170 错误 literal mus t direc tly refer to a built- in 类型文本中的计算属性名必须直接引用内置符号。
s ymbol.

A c omma expres s ion is not allowed in a


1171 错误 计算属性名中不允许逗号表达式。
c omputed property name.

1172 错误 'extends ' c laus e already s een. 已看到 " extends " 子句。

'extends ' c laus e mus t prec ede


1173 错误 " extends " 子句必须位于 " implements " 子句之前。
'implements ' c laus e.

1174 错误 C las s es c an only extend a s ingle c las s . 类只能扩展一个类。

1175 错误 'implements ' c laus e already s een. 已看到 " implements " 子句。

I nterfac e dec laration c annot have


1176 错误 接口声明不能有 " implements " 子句。
'implements ' c laus e.

1177 错误 Binary digit expec ted. 需要二进制数字。

1178 错误 O c tal digit expec ted. 需要八进制数字。

1179 错误 U nexpec ted token. '{' expec ted. 意外标记。应为 " {" 。

P roperty des truc turing pattern


1180 错误 应为属性析构模式。
expec ted.

A rray element des truc turing pattern


1181 错误 应为数组元素析构模式。
expec ted.

A des truc turing dec laration mus t have


1182 错误 析构声明必须具有初始化表达式。
an initializer.

A n implementation c annot be dec lared


1183 错误 不能在环境上下文中声明实现。
in ambient c ontexts .

1184 错误 M odifiers c annot appear here. 修饰符不能出现在此处。

1185 错误 M erge c onflic t marker enc ountered. 遇到合并冲突标记。

A res t element c annot have an


1186 错误 res t 元素不能具有初始化表达式。
initializer.

A parameter property may not be


1187 错误 参数属性不能为绑定模式。
dec lared us ing a binding pattern.

O nly a s ingle variable dec laration is


1188 错误 " for...of" 语句中只允许单个变量声明。
allowed in a 'for...of' s tatement.

T he variable dec laration of a 'for...in'


1189 错误 " for...in" 语句的变量声明不能有初始化表达式。
s tatement c annot have an initializer.

T he variable dec laration of a 'for...of'


1190 错误 " for...of" 语句的变量声明不能有初始化表达式。
s tatement c annot have an initializer.

A n import dec laration c annot have


1191 错误 导入声明不能有修饰符。
modifiers .

1192 错误 M odule '{0 }' has no default export. 模块“{0 }”没有默认导出。

A n export dec laration c annot have


1193 错误 导出声明不能有修饰符。
modifiers .

E xport dec larations are not permitted in


1194 错误 命名空间中不允许有导出声明。
a names pac e.

C atc h c laus e variable c annot have a


1196 错误 C atc h 子句变量不能有类型批注。
type annotation.

C atc h c laus e variable c annot have an


1197 错误 C atc h 子句变量不能有初始化表达式。
initializer.

A n extended U nic ode es c ape value


扩展的 U nic ode 转义值必须介于(含) 0 x0 和 0 x1 0 FFFF 之
1198 错误 mus t be between 0 x0 and 0 x1 0 FFFF
间。
inc lus ive.

U nterminated U nic ode es c ape


1199 错误 未终止的 U nic ode 转义序列。
s equenc e.

L ine terminator not permitted before


1200 错误 箭头前不允许有行终止符。
arrow.

I mport as s ignment c annot be us ed


when targeting E C M A Sc ript 2 0 1 5 当面向 E C M A Sc ript 6 模块时,不能使用导入分配。请考虑
modules . C ons ider us ing 'import * as 改用 " import * as ns from " mod" " 、" import {a}
1202 错误
ns from " mod" ', 'import {a} from from " mod" " 或 " import d from " mod" " 或其他模块格
" mod" ', 'import d from " mod" ', or 式。
another module format ins tead.

E xport as s ignment c annot be us ed


when targeting E C M A Sc ript 2 0 1 5
当面向 E C M A Sc ript 6 模块时,不能使用导出分配。请考虑
1203 错误 modules . C ons ider us ing 'export
改用“导出默认”或其他模块格式。
default' or another module format
ins tead.

1206 错误 D ec orators are not valid here. 修饰器在此处无效。

D ec orators c annot be applied to


1207 错误 multiple get/s et ac c es s ors of the s ame 不能向多个同名的 get/s et 访问器应用修饰器。
name.

C annot c ompile names pac es when the


1208 错误 提供 " - - is olatedM odules " 标志时无法编译命名空间。
'- - is olatedM odules ' flag is provided.

A mbient c ons t enums are not allowed


提供 " - - is olatedM odules " 标志的情况下不允许使用环境常
1209 错误 when the '- - is olatedM odules ' flag is
数枚举。
provided.

I nvalid us e of '{0 }'. C las s definitions


1210 错误 “{0 }”的使用无效。类定义自动处于严格模式。
are automatic ally in s tric t mode.

A c las s dec laration without the 'default'


1211 错误 不带 " default" 修饰符的类声明必须具有名称
modifier mus t have a name

I dentifier expec ted. '{0 }' is a res erved


1212 错误 应为标识符。“{0 }”在严格模式下是保留字
word in s tric t mode

I dentifier expec ted. '{0 }' is a res erved


应为标识符。“{0 }”在严格模式下是保留字。类定义自动处于严
1213 错误 word in s tric t mode. C las s definitions
格模式。
are automatic ally in s tric t mode.

I dentifier expec ted. '{0 }' is a res erved


应为标识符。“{0 }”是严格模式下的保留字。模块自动处于严格
1214 错误 word in s tric t mode. M odules are
模式。
automatic ally in s tric t mode.

I nvalid us e of '{0 }'. M odules are


1215 错误 “{0 }”的使用无效。模块自动处于严格模式。
automatic ally in s tric t mode.

E xport as s ignment is not s upported


1218 错误 当 " - - module" 标志是 " s ys tem" 时不支持导出分配。
when '- - module' flag is 's ys tem'.

E xperimental s upport for dec orators is


E xperimental s upport for dec orators is a feature
a feature that is s ubjec t to c hange in a
that is s ubjec t to c hange in a future releas e. Set
1219 错误 future releas e. Set the
the 'experimentalD ec orators ' option to remove this
'experimentalD ec orators ' option to
warning.
remove this warning.

G enerators are only available when


1220 错误 仅当面向 E C M A Sc ript 6 或更高版本时,生成器才可用。
targeting E C M A Sc ript 2 0 1 5 or higher.

G enerators are not allowed in an


1221 错误 不允许在环境上下文中使用生成器。
ambient c ontext.

A n overload s ignature c annot be


1222 错误 重载签名无法声明为生成器。
dec lared as a generator.

1223 错误 '{0 }' tag already s pec ified. 已指定“{0 }”标记。

Signature '{0 }' mus t have a type


1224 错误 签名“{0 }”必须具有类型谓词。
predic ate.

1225 错误 C annot find parameter '{0 }'. 找不到参数“{0 }”。

Type predic ate '{0 }' is not as s ignable


1226 错误 类型谓词“{0 }”不可分配给“{1 }”。
to '{1 }'.

P arameter '{0 }' is not in the s ame


1227 错误 参数“{0 }”和参数“{1 }”的位置不一样。
pos ition as parameter '{1 }'.

A type predic ate is only allowed in


1228 错误 return type pos ition for func tions and 只允许在函数和方法的返回类型位置使用类型谓词。
methods .

A type predic ate c annot referenc e a


1229 错误 类型谓词无法引用 res t 参数。
res t parameter.

A type predic ate c annot referenc e


1230 错误 类型谓词无法在绑定模式中引用元素“{0 }”。
element '{0 }' in a binding pattern.

A n export as s ignment c an only be us ed


1231 错误 导出分配只能在模块中使用。
in a module.

A n import dec laration c an only be us ed


1232 错误 导入声明只能在命名空间或模块中使用。
in a names pac e or module.

A n export dec laration c an only be us ed


1233 错误 导出声明只能在模块中使用。
in a module.

A n ambient module dec laration is only


1234 错误 只允许在文件的顶层中使用环境模块声明。
allowed at the top level in a file.

A names pac e dec laration is only


1235 错误 只允许在命名空间或模块中使用命名空间声明。
allowed in a names pac e or module.

T he return type of a property dec orator


1236 错误 属性修饰器函数的返回类型必须为 " void" 或 " any" 。
func tion mus t be either 'void' or 'any'.

T he return type of a parameter


1237 错误 dec orator func tion mus t be either 'void' 参数修饰器函数的返回类型必须为 " void" 或 " any" 。
or 'any'.

U nable to res olve s ignature of c las s


1238 错误 作为表达式调用时,无法解析类修饰器的签名。
dec orator when c alled as an expres s ion.

U nable to res olve s ignature of


1239 错误 parameter dec orator when c alled as an 作为表达式调用时,无法解析参数修饰器的签名。
expres s ion.

U nable to res olve s ignature of property


1240 错误 作为表达式调用时,无法解析属性修饰器的签名。
dec orator when c alled as an expres s ion.

U nable to res olve s ignature of method


1241 错误 作为表达式调用时,无法解析方法修饰器的签名。
dec orator when c alled as an expres s ion.

'abs trac t' modifier c an only appear on a


1242 错误 " abs trac t" 修饰符只能出现在类声明或方法声明中。
c las s , method, or property dec laration.

'{0 }' modifier c annot be us ed with '{1 }'


1243 错误 “{0 }”修饰符不能与“{1 }”修饰符一起使用。
modifier.

A bs trac t methods c an only appear


1244 错误 抽象方法只能出现在抽象类中。
within an abs trac t c las s .

M ethod '{0 }' c annot have an


1245 错误 implementation bec aus e it is marked 方法“{0 }”不能具有实现,因为它标记为抽象。
abs trac t.

A n interfac e property c annot have an


1246 错误 接口函数不能具有初始化表达式。
initializer.

A type literal property c annot have an


1247 错误 类型文字数据不可具有初始化表达式。
initializer.

A c las s member c annot have the '{0 }'


1248 错误 A c las s member c annot have the '{0 }' keyword.
keyword.

A dec orator c an only dec orate a method A dec orator c an only dec orate a method
1249 错误
implementation, not an overload. implementation, not an overload.

Func tion dec larations are not allowed


1250 错误 ins ide bloc ks in s tric t mode when
targeting 'E S3 ' or 'E S5 '.

Func tion dec larations are not allowed


ins ide bloc ks in s tric t mode when
1251 错误 targeting 'E S3 ' or 'E S5 '. C las s
definitions are automatic ally in s tric t
mode.

Func tion dec larations are not allowed


ins ide bloc ks in s tric t mode when
1252 错误
targeting 'E S3 ' or 'E S5 '. M odules are
automatic ally in s tric t mode.

'{0 }' tag c annot be us ed independently


1253 错误
as a top level J SD oc tag.

A 'c ons t' initializer in an ambient


1254 错误 c ontext mus t be a s tring or numeric
literal.

'with' s tatements are not allowed in an


1300 错误 不允许在异步函数块中使用 " with" 语句。
as ync func tion bloc k.

'await' expres s ion is only allowed within


1308 错误 只允许在异步函数中使用 " await" 表达式。
an as ync func tion.

'=' c an only be us ed in an objec t literal


1312 错误 property ins ide a des truc turing " =" 只可在重构赋值内部的对象文字属性中使用。
as s ignment.

T he body of an 'if' s tatement c annot be


1313 错误 " if" 语句的正文不能为空语句。
the empty s tatement.

G lobal module exports may only appear


1314 错误
in module files .

G lobal module exports may only appear


1315 错误
in dec laration files .

G lobal module exports may only appear


1316 错误
at top level.

A parameter property c annot be


1317 错误
dec lared us ing a res t parameter.

A n abs trac t ac c es s or c annot have an


1318 错误
implementation.

A default export c an only be us ed in an


1319 错误
E C M A Sc ript- s tyle module.

2300 错误 D uplic ate identifier '{0 }'. 标识符“{0 }”重复。

I nitializer of ins tanc e member variable


实例成员变量“{0 }”的初始化表达式不能引用构造函数中声明的
2301 错误 '{0 }' c annot referenc e identifier '{1 }'
标识符“{1 }”。
dec lared in the c ons truc tor.

Static members c annot referenc e c las s


2302 错误 静态成员不能引用类类型参数。
type parameters .

2303 错误 C irc ular definition of import alias '{0 }'. 导入别名“{0 }”的循环定义。

2304 错误 C annot find name '{0 }'. 找不到名称“{0 }”。

M odule '{0 }' has no exported member


2305 错误 模块“{0 }”没有导出的成员“{1 }”。
'{1 }'.

2306 错误 File '{0 }' is not a module. 文件“{0 }”不是模块。

2307 错误 C annot find module '{0 }'. 找不到模块“{0 }”。

M odule {0 } has already exported a


member named '{1 }'. C ons ider 模块 {0 } 已导出一个名为“{1 }”的成员。请考虑重新显式导出
2308 错误
explic itly re- exporting to res olve the 以解决歧义。
ambiguity.

A n export as s ignment c annot be us ed


2309 错误 in a module with other exported 不能在具有其他导出元素的模块中使用导出分配。
elements .

Type '{0 }' rec urs ively referenc es its elf


2310 错误 类型“{0 }”以递归方式将自身引用为基类。
as a bas e type.

2311 错误 A c las s may only extend another c las s . 类只能扩展其他类。

A n interfac e may only extend a c las s or


2312 错误 接口只能扩展类或其他接口。
another interfac e.

Type parameter '{0 }' has a c irc ular


2313 错误 Type parameter '{0 }' has a c irc ular c ons traint.
c ons traint.

G eneric type '{0 }' requires {1 } type


2314 错误 泛型类型“{0 }”需要 {1 } 个类型参数。
argument(s ).

2315 错误 Type '{0 }' is not generic . 类型“{0 }”不是泛型类型。

G lobal type '{0 }' mus t be a c las s or


2316 错误 全局类型“{0 }”必须为类或接口类型。
interfac e type.

G lobal type '{0 }' mus t have {1 } type


2317 错误 全局类型“{0 }”必须具有 {1 } 个类型参数。
parameter(s ).

2318 错误 C annot find global type '{0 }'. 找不到全局类型“{0 }”。

N amed property '{0 }' of types '{1 }' and


2319 错误 “{1 }”和“{2 }”类型的命名属性“{0 }”不完全相同。
'{2 }' are not identic al.

I nterfac e '{0 }' c annot s imultaneous ly


2320 错误 接口“{0 }”不能同时扩展类型“{1 }”和“{2 }”。
extend types '{1 }' and '{2 }'.

E xc es s ive s tac k depth c omparing types


2321 错误 与类型“{0 }”和“{1 }”相比,堆栈深度过高。
'{0 }' and '{1 }'.

Type '{0 }' is not as s ignable to type


2322 错误 不能将类型“{0 }”分配给类型“{1 }”。
'{1 }'.

C annot redec lare exported variable


2323 错误 无法重新声明导出的变量“{0 }”。
'{0 }'.

2324 错误 P roperty '{0 }' is mis s ing in type '{1 }'. 类型“{1 }”中缺少属性“{0 }”。

P roperty '{0 }' is private in type '{1 }' 属性“{0 }”在类型“{1 }”中是私有属性,但在类型“{2 }”中不
2325 错误
but not in type '{2 }'. 是。

Types of property '{0 }' are


2326 错误 属性“{0 }”的类型不兼容。
inc ompatible.

P roperty '{0 }' is optional in type '{1 }'


2327 错误 属性“{0 }”在类型“{1 }”中为可选,但在类型“{2 }”中为必选。
but required in type '{2 }'.

Types of parameters '{0 }' and '{1 }' are


2328 错误 参数“{0 }”和“{1 }” 的类型不兼容。
inc ompatible.

I ndex s ignature is mis s ing in type


2329 错误 类型“{0 }”中缺少索引签名。
'{0 }'.

2330 错误 I ndex s ignatures are inc ompatible. 索引签名不兼容。

'this ' c annot be referenc ed in a module


2331 错误 不能在模块或命名空间体中引用 " this " 。
or names pac e body.

'this ' c annot be referenc ed in c urrent


2332 错误 不能在当前位置引用 " this " 。
loc ation.

'this ' c annot be referenc ed in


2333 错误 不能在构造函数参数中引用 " this " 。
c ons truc tor arguments .

'this ' c annot be referenc ed in a s tatic


2334 错误 不能在静态属性初始化表达式中引用 " this " 。
property initializer.

's uper' c an only be referenc ed in a


2335 错误 只能在派生类中引用 " s uper" 。
derived c las s .

's uper' c annot be referenc ed in


2336 错误 不能在构造函数参数中引用 " s uper" 。
c ons truc tor arguments .

Super c alls are not permitted outs ide


不允许在构造函数外部或在构造函数内的嵌套函数中进行
2337 错误 c ons truc tors or in nes ted func tions
Super 调用。
ins ide c ons truc tors .

's uper' property ac c es s is permitted


只有构造函数、成员函数或派生类的成员访问器中才允许
2338 错误 only in a c ons truc tor, member func tion,
" s uper" 属性访问。
or member ac c es s or of a derived c las s .

P roperty '{0 }' does not exis t on type


2339 错误 类型“{1 }”上不存在属性“{0 }”。
'{1 }'.

O nly public and protec ted methods of


2340 错误 the bas e c las s are ac c es s ible via the 通过 " s uper" 关键字只能访问基类的公共方法和受保护方法。
's uper' keyword.

P roperty '{0 }' is private and only


2341 错误 属性“{0 }”为私有属性,只能在类“{1 }”中访问。
ac c es s ible within c las s '{1 }'.

A n index expres s ion argument mus t be


索引表达式参数必须为 " s tring" 、" number" 、" s ymbol" 或
2342 错误 of type 's tring', 'number', 's ymbol', or
" any" 类型。
'any'.

T his s yntax requires an imported helper


2343 错误 named '{1 }', but module '{0 }' has no
exported member '{1 }'.

Type '{0 }' does not s atis fy the


2344 错误 类型“{0 }”不满足约束“{1 }”。
c ons traint '{1 }'.

A rgument of type '{0 }' is not


2345 错误 类型“{0 }”的参数不能赋给类型“{1 }”的参数。
as s ignable to parameter of type '{1 }'.

Supplied parameters do not matc h any


2346 错误 提供的参数与调用目标的任何签名都不匹配。
s ignature of c all target.

U ntyped func tion c alls may not ac c ept


2347 错误 非类型化函数调用不能接受类型参数。
type arguments .

Value of type '{0 }' is not c allable. D id


2348 错误 类型“{0 }”的值不可调用。是否希望包括 " new" ?
you mean to inc lude 'new'?

C annot invoke an expres s ion whos e


2349 错误 type lac ks a c all s ignature. Type '{0 }' 无法调用其类型缺少调用签名的表达式。
has no c ompatible c all s ignatures .

O nly a void func tion c an be c alled with


2350 错误 使用 " new" 关键字只能调用 void 函数。
the 'new' keyword.

C annot us e 'new' with an expres s ion


2351 错误 whos e type lac ks a c all or c ons truc t 其类型缺少调用或构造签名的表达式无法使用 " new" 。
s ignature.

Type '{0 }' c annot be c onverted to type


2352 错误 类型“{0 }”和类型“{1 }”均不能赋给对方。
'{1 }'.

O bjec t literal may only s pec ify known


2353 错误 properties , and '{0 }' does not exis t in 对象文字可以只指定已知属性,并且“{0 }”不在类型“{1 }”中。
type '{1 }'.

T his s yntax requires an imported helper


2354 错误 返回表达式中不存在最佳通用类型。
but module '{0 }' c annot be found.

A func tion whos e dec lared type is


2355 错误 neither 'void' nor 'any' mus t return a 其声明类型不为 " void" 或 " any" 的函数必须返回值。
value.

A n arithmetic operand mus t be of type


2356 错误 算术操作数必须为类型 " any" 、" number" 或枚举类型。
'any', 'number' or an enum type.

T he operand of an inc rement or


2357 错误 dec rement operator mus t be a variable 增量或减量运算符的操作数必须为变量、属性或索引器。
or a property ac c es s .

T he left- hand s ide of an 'ins tanc eof'


" ins tanc eof" 表达式左侧必须是 " any" 类型、对象类型或类
2358 错误 expres s ion mus t be of type 'any', an
型参数。
objec t type or a type parameter.

T he right- hand s ide of an 'ins tanc eof'


expres s ion mus t be of type 'any' or of a " ins tanc eof" 表达式的右侧必须属于类型 " any" ,或属于可
2359 错误
type as s ignable to the 'Func tion' 分配给 " Func tion" 接口类型的类型。
interfac e type.

T he left- hand s ide of an 'in' expres s ion


" in" 表达式左侧的类型必须为
2360 错误 mus t be of type 'any', 's tring', 'number',
" any" 、" s tring" 、" number" 或 " s ymbol" 。
or 's ymbol'.

T he right- hand s ide of an 'in'


2361 错误 expres s ion mus t be of type 'any', an " in" 表达式的右侧必须是 " any" 类型、对象类型或类型参数
objec t type or a type parameter

T he left- hand s ide of an arithmetic


2362 错误 operation mus t be of type 'any', 算术运算左侧必须是 " any" 、" number" 或枚举类型。
'number' or an enum type.

T he right- hand s ide of an arithmetic


2363 错误 operation mus t be of type 'any', 算术运算右侧必须是 " any" 、" number" 或枚举类型。
'number' or an enum type.

T he left- hand s ide of an as s ignment


2364 错误 expres s ion mus t be a variable or a 赋值表达式左侧无效。
property ac c es s .

O perator '{0 }' c annot be applied to


2365 错误 运算符“{0 }”不能应用于类型“{1 }”和“{2 }”。
types '{1 }' and '{2 }'.

Func tion lac ks ending return s tatement


2366 错误 and return type does not inc lude
'undefined'.

2368 错误 Type parameter name c annot be '{0 }' 类型参数名称不能为“{0 }”

A parameter property is only allowed in


2369 错误 只允许在构造函数实现中使用参数属性。
a c ons truc tor implementation.

A res t parameter mus t be of an array


2370 错误 res t 参数必须是数组类型。
type.

A parameter initializer is only allowed in


2371 错误 a func tion or c ons truc tor 只允许在函数或构造函数实现中使用参数初始化表达式。
implementation.

P arameter '{0 }' c annot be referenc ed in


2372 错误 参数“{0 }”的初始化表达式中不能引用该参数自身。
its initializer.

I nitializer of parameter '{0 }' c annot


参数“{0 }”的初始化表达式不能引用在它之后声明的标识
2373 错误 referenc e identifier '{1 }' dec lared after
符“{1 }”。
it.

2374 错误 D uplic ate s tring index s ignature. 字符串索引签名重复。

2375 错误 D uplic ate number index s ignature. 数字索引签名重复。

A 's uper' c all mus t be the firs t


s tatement in the c ons truc tor when a 当类包含初始化的属性或参数属性时," s uper" 调用必须是构
2376 错误
c las s c ontains initialized properties or 造函数中的第一个语句。
has parameter properties .

C ons truc tors for derived c las s es mus t


2377 错误 派生类的构造函数必须包含 " s uper" 调用。
c ontain a 's uper' c all.

2378 错误 A 'get' ac c es s or mus t return a value. " get" 访问器必须返回值。

G etter and s etter ac c es s ors do not


2379 错误 G etter 和 s etter 访问器在可见性上不一致。
agree in vis ibility.

'get' and 's et' ac c es s or mus t have the


2380 错误 " get" 和 " s et" 访问器必须属于同一类型。
s ame type.

A s ignature with an implementation


2381 错误 具有实现的签名不能使用字符串文本类型。
c annot us e a s tring literal type.

Spec ialized overload s ignature is not


2382 错误 as s ignable to any non- s pec ialized 指定的重载签名不可分配给任何非专用化签名。
s ignature.

O verload s ignatures mus t all be


2383 错误 重载签名必须全部导出或全部不导出。
exported or non- exported.

O verload s ignatures mus t all be


2384 错误 重载签名必须全部为环境签名或非环境签名。
ambient or non- ambient.

O verload s ignatures mus t all be public ,


2385 错误 重载签名必须全部是公共签名、私有签名或受保护签名。
private or protec ted.

O verload s ignatures mus t all be


2386 错误 重载签名必须全部为可选签名或必需签名。
optional or required.

2387 错误 Func tion overload mus t be s tatic . 函数重载必须为静态。

2388 错误 Func tion overload mus t not be s tatic . 函数重载不能为静态。

Func tion implementation name mus t be


2389 错误 函数实现名称必须为“{0 }”。
'{0 }'.

2390 错误 C ons truc tor implementation is mis s ing. 缺少构造函数实现。

Func tion implementation is mis s ing or


2391 错误 not immediately following the 函数实现缺失或未立即出现在声明之后。
dec laration.

M ultiple c ons truc tor implementations


2392 错误 不允许存在多个构造函数实现。
are not allowed.

2393 错误 D uplic ate func tion implementation. 函数实现重复。

O verload s ignature is not c ompatible


2394 错误 重载签名与函数实现不兼容。
with func tion implementation.

I ndividual dec larations in merged


2395 错误 dec laration '{0 }' mus t be all exported 合并声明“{0 }”中的单独声明必须全为导出或全为局部声明。
or all loc al.

D uplic ate identifier 'arguments '.


标识符 " arguments " 重复。编译器使用 " arguments " 初始
2396 错误 C ompiler us es 'arguments ' to initialize
化 res t 参数。
res t parameters .

D ec laration name c onflic ts with built- in D ec laration name c onflic ts with built- in global
2397 错误
global identifier '{0 }'. identifier '{0 }'.

D uplic ate identifier '_this '. C ompiler


标识符 " _this " 重复。编译器使用变量声明 " _this " 来捕获
2399 错误 us es variable dec laration '_this ' to
" this " 引用。
c apture 'this ' referenc e.

E xpres s ion res olves to variable


表达式解析为编译器用于捕获 " this " 引用的变量声明
2400 错误 dec laration '_this ' that c ompiler us es to
" _this " 。
c apture 'this ' referenc e.

D uplic ate identifier '_s uper'. C ompiler


标识符 " _s uper" 重复。编译器使用 " _s uper" 获取基类引
2401 错误 us es '_s uper' to c apture bas e c las s
用。
referenc e.

E xpres s ion res olves to '_s uper' that


表达式解析为 " _s uper" ,编译器使用 " _s uper" 获取基类引
2402 错误 c ompiler us es to c apture bas e c las s
用。
referenc e.

Subs equent variable dec larations mus t


have the s ame type. Variable '{0 }' 后续变量声明必须属于同一类型。变量“{0 }”必须属于类
2403 错误
mus t be of type '{1 }', but here has type 型“{1 }”,但此处却为类型“{2 }”。
'{2 }'.

T he left- hand s ide of a 'for...in'


2404 错误 s tatement c annot us e a type " for...in" 语句的左侧不能使用类型批注。
annotation.

T he left- hand s ide of a 'for...in'


2405 错误 s tatement mus t be of type 's tring' or " for...in" 语句的左侧必须是 " s tring" 或 " any" 类型。
'any'.

T he left- hand s ide of a 'for...in'


2406 错误 s tatement mus t be a variable or a " for...in" 语句左侧无效。
property ac c es s .

T he right- hand s ide of a 'for...in'


" for...in" 语句右侧必须是 " any" 类型、对象类型或类型参
2407 错误 s tatement mus t be of type 'any', an
数。
objec t type or a type parameter.

2408 错误 Setters c annot return a value. Setter 不能返回值。

Return type of c ons truc tor s ignature


2409 错误 mus t be as s ignable to the ins tanc e type 构造函数签名的返回类型必须可赋给类的实例类型
of the c las s

T he 'with' s tatement is not s upported.


2410 错误 A ll s ymbols in a 'with' bloc k will have " with" 块内的所有符号都将被解析为 " any" 。
type 'any'.

P roperty '{0 }' of type '{1 }' is not


2411 错误 类型“{1 }”的属性“{0 }”不能赋给字符串索引类型“{2 }”。
as s ignable to s tring index type '{2 }'.

P roperty '{0 }' of type '{1 }' is not


2412 错误 类型“{1 }”的属性“{0 }”不能赋给数值索引类型“{2 }”。
as s ignable to numeric index type '{2 }'.

N umeric index type '{0 }' is not


2413 错误 数字索引类型“{0 }”不能赋给字符串索引类型“{1 }”。
as s ignable to s tring index type '{1 }'.

2414 错误 C las s name c annot be '{0 }' 类名不能为“{0 }”

C las s '{0 }' inc orrec tly extends bas e


2415 错误 类“{0 }”错误扩展基类“{1 }”。
c las s '{1 }'.

C las s s tatic s ide '{0 }' inc orrec tly


2417 错误 类静态侧“{0 }”错误扩展基类静态侧“{1 }”。
extends bas e c las s s tatic s ide '{1 }'.

C las s '{0 }' inc orrec tly implements


2420 错误 类“{0 }”错误实现接口“{1 }”。
interfac e '{1 }'.

A c las s may only implement another


2422 错误 类只能实现其他类或接口。
c las s or interfac e.

C las s '{0 }' defines ins tanc e member


类“{0 }”将“{1 }”定义为实例成员函数,但扩展类“{2 }”将其定
2423 错误 func tion '{1 }', but extended c las s '{2 }'
义为实例成员访问器。
defines it as ins tanc e member ac c es s or.

C las s '{0 }' defines ins tanc e member


类“{0 }”将“{1 }”定义为实例成员函数,但扩展类“{2 }”将其定
2424 错误 func tion '{1 }', but extended c las s '{2 }'
义为实例成员属性。
defines it as ins tanc e member property.

C las s '{0 }' defines ins tanc e member


类“{0 }”将“{1 }”定义为实例成员属性,但扩展类“{2 }”将其定
2425 错误 property '{1 }', but extended c las s '{2 }'
义为实例成员函数。
defines it as ins tanc e member func tion.

C las s '{0 }' defines ins tanc e member


ac c es s or '{1 }', but extended c las s 类“{0 }”将“{1 }”定义为实例成员访问器,但扩展类“{2 }”将其
2426 错误
'{2 }' defines it as ins tanc e member 定义为实例成员函数。
func tion.

2427 错误 I nterfac e name c annot be '{0 }' 接口名不能为“{0 }”

A ll dec larations of '{0 }' mus t have


2428 错误 接口的所有声明必须具有相同的类型参数。
identic al type parameters .

I nterfac e '{0 }' inc orrec tly extends


2430 错误 接口“{0 }”错误扩展接口“{1 }”。
interfac e '{1 }'.

2431 错误 E num name c annot be '{0 }' 枚举名不能为“{0 }”

I n an enum with multiple dec larations ,


在包含多个声明的枚举中,只有一个声明可以省略其第一个枚举
2432 错误 only one dec laration c an omit an
元素的初始化表达式。
initializer for its firs t enum element.

A names pac e dec laration c annot be in a


2433 错误 different file from a c las s or func tion 命名空间声明不能位于与之合并的类或函数中的其他文件内
with whic h it is merged

A names pac e dec laration c annot be


2434 错误 loc ated prior to a c las s or func tion with 命名空间声明不能位于与之合并的类或函数前
whic h it is merged

A mbient modules c annot be nes ted in


2435 错误 环境模块不能嵌套在其他模块或命名空间中。
other modules or names pac es .

A mbient module dec laration c annot


2436 错误 环境模块声明无法指定相对模块名。
s pec ify relative module name.

M odule '{0 }' is hidden by a loc al


2437 错误 模块“{0 }”被具有相同名称的局部声明隐藏
dec laration with the s ame name

2438 错误 I mport name c annot be '{0 }' 导入名称不能为“{0 }”

I mport or export dec laration in an


ambient module dec laration c annot 环境模块声明中的导入或导出声明不能通过相对模块名引用模
2439 错误
referenc e module through relative 块。
module name.

I mport dec laration c onflic ts with loc al


2440 错误 导入声明与“{0 }”的局部声明冲突
dec laration of '{0 }'

D uplic ate identifier '{0 }'. C ompiler


标识符“{0 }”重复。编译器在模块的顶层范围中保留名
2441 错误 res erves name '{1 }' in top level s c ope
称“{1 }”。
of a module.

Types have s eparate dec larations of a


2442 错误 类型具有私有属性“{0 }”的单独声明。
private property '{0 }'.

P roperty '{0 }' is protec ted but type


2443 错误 属性“{0 }”受保护,但类型“{1 }”并不是从“{2 }”派生的类。
'{1 }' is not a c las s derived from '{2 }'.

P roperty '{0 }' is protec ted in type '{1 }' 属性“{0 }”在类型“{1 }”中受保护,但在类型“{2 }”中为公共属
2444 错误
but public in type '{2 }'. 性。

P roperty '{0 }' is protec ted and only


2445 错误 ac c es s ible within c las s '{1 }' and its 属性“{0 }”受保护,只能在类“{1 }”及其子类中访问。
s ubc las s es .

P roperty '{0 }' is protec ted and only


2446 错误 ac c es s ible through an ins tanc e of c las s 属性“{0 }”受保护,只能通过类“{1 }”的实例访问。
'{1 }'.

T he '{0 }' operator is not allowed for


2447 错误 boolean types . C ons ider us ing '{1 }' “{0 }”运算符不允许用于布尔类型。请考虑改用“{1 }”。
ins tead.

Bloc k- s c oped variable '{0 }' us ed before


2448 错误 声明之前已使用的块范围变量“{0 }”。
its dec laration.

C annot redec lare bloc k- s c oped variable


2451 错误 无法重新声明块范围变量“{0 }”。
'{0 }'.

A n enum member c annot have a


2452 错误 枚举成员不能具有数值名。
numeric name.

T he type argument for type parameter


'{0 }' c annot be inferred from the us age. 无法从用法推断类型形参“{0 }”的类型实参。可以考虑显式指定
2453 错误
C ons ider s pec ifying the type arguments 类型实参。
explic itly.

Variable '{0 }' is us ed before being


2454 错误
as s igned.

Type argument c andidate '{1 }' is not a


候选类型参数“{1 }”不是有效的类型参数,因为它不是候
2455 错误 valid type argument bec aus e it is not a
选“{0 }”的超类型。
s upertype of c andidate '{0 }'.

Type alias '{0 }' c irc ularly referenc es


2456 错误 类型别名“{0 }”循环引用自身。
its elf.

2457 错误 Type alias name c annot be '{0 }' 类型别名不能为“{0 }”

A n A M D module c annot have multiple


2458 错误 A M D 模块无法拥有多个名称分配。
name as s ignments .

Type '{0 }' has no property '{1 }' and no


2459 错误 类型“{0 }”不具有属性“{1 }”和字符串索引签名。
s tring index s ignature.

2460 错误 Type '{0 }' has no property '{1 }'. 类型“{0 }”不具有属性“{1 }”。

2461 错误 Type '{0 }' is not an array type. 类型“{0 }”不是数组类型。

A res t element mus t be las t in a


2462 错误 res t 元素必须在数组析构模式中位于最末
des truc turing pattern

A binding pattern parameter c annot be


2463 错误 绑定模式参数在实现签名中不能为可选参数。
optional in an implementation s ignature.

A c omputed property name mus t be of


计算属性名的类型必须为 " s tring" 、" number" 、" s ymbol"
2464 错误 type 's tring', 'number', 's ymbol', or
或 " any" 。
'any'.

'this ' c annot be referenc ed in a


2465 错误 不能在计算属性名中引用 " this " 。
c omputed property name.

's uper' c annot be referenc ed in a


2466 错误 不能在计算属性名中引用 " s uper" 。
c omputed property name.

A c omputed property name c annot


2467 错误 referenc e a type parameter from its 计算属性名无法从其包含的类型引用类型参数。
c ontaining type.

2468 错误 C annot find global value '{0 }'. 找不到全局值“{0 }”。

T he '{0 }' operator c annot be applied to


2469 错误 “{0 }”运算符不能应用于类型 " s ymbol" 。
type 's ymbol'.

'Symbol' referenc e does not refer to the


2470 错误 " Symbol" 引用不是指全局符号构造函数对象。
global Symbol c ons truc tor objec t.

A c omputed property name of the form


2471 错误 窗体“{0 }”的计算属性名必须是 " s ymbol" 类型。
'{0 }' mus t be of type 's ymbol'.

Spread operator in 'new' expres s ions is


仅当面向 E C M A Sc ript 5 和更高版本时," new" 表达式中的
2472 错误 only available when targeting
展开运算符才可用。
E C M A Sc ript 5 and higher.

E num dec larations mus t all be c ons t or


2473 错误 枚举声明必须全为常数或非常数。
non- c ons t.

I n 'c ons t' enum dec larations member 在 " c ons t" 枚举声明中,成员初始化表达式必须是常数表达
2474 错误
initializer mus t be c ons tant expres s ion. 式。

'c ons t' enums c an only be us ed in


property or index ac c es s expres s ions " c ons t" 枚举仅可在属性、索引访问表达式、导入声明的右侧
2475 错误
or the right hand s ide of an import 或导出分配中使用。
dec laration or export as s ignment.

A c ons t enum member c an only be


2476 错误 只有使用字符串文本才能访问常数枚举成员。
ac c es s ed us ing a s tring literal.

'c ons t' enum member initializer was


2477 错误 " c ons t" 枚举成员初始化表达式的求值结果为非有限值。
evaluated to a non- finite value.

'c ons t' enum member initializer was " c ons t" 枚举成员初始化表达式的求值结果为不允许使用的值
2478 错误
evaluated to dis allowed value 'N aN '. " N aN " 。

P roperty '{0 }' does not exis t on 'c ons t'


2479 错误 " c ons t" 枚举“{1 }”上不存在属性“{0 }”。
enum '{1 }'.

'let' is not allowed to be us ed as a name


2480 错误 " let" 不能用作 " let" 或 " c ons t" 声明中的名称。
in 'let' or 'c ons t' dec larations .

C annot initialize outer s c oped variable


无法在块范围声明“{1 }”所在的范围内初始化外部范围变
2481 错误 '{0 }' in the s ame s c ope as bloc k
量“{0 }”。
s c oped dec laration '{1 }'.

T he left- hand s ide of a 'for...of'


2483 错误 s tatement c annot us e a type " for...of" 语句的左侧不能使用类型批注。
annotation.

E xport dec laration c onflic ts with


2484 错误 导出声明与“{0 }”的导出声明冲突
exported dec laration of '{0 }'

T he left- hand s ide of a 'for...of'


2487 错误 s tatement mus t be a variable or a " for...of" 语句左侧无效。
property ac c es s .

Type mus t have a 'Symbol.iterator ()'


2488 错误 类型必须具有返回迭代器的 " Symbol.iterator ()" 方法。
method that returns an iterator.

2489 错误 A n iterator mus t have a 'next()' method. 迭代器必须具有 " next()" 方法。

T he type returned by the 'next()'


2490 错误 method of an iterator mus t have a 迭代器的 " next()" 方法返回的类型必须具有 " value" 属性。
'value' property.

T he left- hand s ide of a 'for...in'


2491 错误 s tatement c annot be a des truc turing " for...in" 语句的左侧不能为析构模式。
pattern.

C annot redec lare identifier '{0 }' in


2492 错误 无法在 c atc h 子句中重新声明标识符“{0 }”
c atc h c laus e

Tuple type '{0 }' with length '{1 }'


不能将长度为“{1 }”的元组类型“{0 }”分配给长度为“{2 }”的元
2493 错误 c annot be as s igned to tuple with length
组。
'{2 }'.

U s ing a s tring in a 'for...of' s tatement is


仅 E C M A Sc ript 5 和更高版本支持在 " for...of" 语句中使用
2494 错误 only s upported in E C M A Sc ript 5 and
字符串。
higher.

Type '{0 }' is not an array type or a


2495 错误 类型“{0 }”不是数组类型或字符串类型。
s tring type.

T he 'arguments ' objec t c annot be


referenc ed in an arrow func tion in E S3 E S3 和 E S5 中的箭头函数不能引用 " arguments " 对象。请
2496 错误
and E S5 . C ons ider us ing a s tandard 考虑使用标准函数表达式。
func tion expres s ion.

M odule '{0 }' res olves to a non- module


2497 错误 entity and c annot be imported us ing 模块“{0 }”解析为非模块实体,且不能使用此构造导入。
this c ons truc t.

M odule '{0 }' us es 'export =' and c annot 模块“{0 }”使用 " export =" 且无法与 " export * " 一起使
2498 错误
be us ed with 'export * '. 用。

A n interfac e c an only extend an


2499 错误 identifier/qualified- name with optional 接口只能扩展具有可选类型参数的标识符/限定名称。
type arguments .

A c las s c an only implement an


2500 错误 identifier/qualified- name with optional 类只能实现具有可选类型参数的标识符/限定名称。
type arguments .

A res t element c annot c ontain a binding


2501 错误 res t 元素不能包含绑定模式。
pattern.

'{0 }' is referenc ed direc tly or indirec tly


2502 错误 “{0 }”在其自身的类型批注中得到直接或间接引用。
in its own type annotation.

2503 错误 C annot find names pac e '{0 }'. 找不到命名空间“{0 }”。

A generator c annot have a 'void' type


2505 错误 生成器不能具有 " void" 类型批注。
annotation.

'{0 }' is referenc ed direc tly or indirec tly


2506 错误 “{0 }”在其自身的基表达式中得到直接或间接引用。
in its own bas e expres s ion.

Type '{0 }' is not a c ons truc tor func tion


2507 错误 类型“{0 }”不是构造函数类型。
type.

N o bas e c ons truc tor has the s pec ified


2508 错误 没有任何基构造函数具有指定数量的类型参数。
number of type arguments .

Bas e c ons truc tor return type '{0 }' is


2509 错误 基构造函数返回类型“{0 }”不是类或接口类型。
not a c las s or interfac e type.

Bas e c ons truc tors mus t all have the


2510 错误 所有的基构造函数必须具有相同的返回类型。
s ame return type.

C annot c reate an ins tanc e of the


2511 错误 无法创建抽象类“{0 }”的实例。
abs trac t c las s '{0 }'.

O verload s ignatures mus t all be


2512 错误 重载签名必须全部为抽象签名或非抽象签名。
abs trac t or non- abs trac t.

A bs trac t method '{0 }' in c las s '{1 }'


2513 错误 c annot be ac c es s ed via s uper 无法通过 s uper 表达式访问“{1 }”类中的“{0 }”抽象方法。
expres s ion.

C las s es c ontaining abs trac t methods


2514 错误 包含抽象方法的类必须标记为抽象。
mus t be marked abs trac t.

N on- abs trac t c las s '{0 }' does not


2515 错误 implement inherited abs trac t member 非抽象类“{0 }”不会实现继承自“{2 }”类的抽象成员“{1 }”。
'{1 }' from c las s '{2 }'.

A ll dec larations of an abs trac t method


2516 错误 抽象方法的所有声明必须是连续的。
mus t be c ons ec utive.

C annot as s ign an abs trac t c ons truc tor


2517 错误 type to a non- abs trac t c ons truc tor 无法将抽象构造函数类型分配给非抽象构造函数类型。
type.

A 'this '- bas ed type guard is not


A 'this '- bas ed type guard is not c ompatible with a
2518 错误 c ompatible with a parameter- bas ed
parameter- bas ed type guard.
type guard.

D uplic ate identifier '{0 }'. C ompiler


2520 错误 us es dec laration '{1 }' to s upport as ync 标识符“{0 }”重复。编译器使用“{1 }”声明来支持异步函数。
func tions .

E xpres s ion res olves to variable


2521 错误 dec laration '{0 }' that c ompiler us es to 表达式解析为编译器用于支持异步函数的变量声明“{0 }”。
s upport as ync func tions .

T he 'arguments ' objec t c annot be


referenc ed in an as ync func tion or 无法在异步箭头函数中引用 " arguments " 对象。请考虑使用
2522 错误
method in E S3 and E S5 . C ons ider us ing 标准的异步函数表达式。
a s tandard func tion or method.

'yield' expres s ions c annot be us ed in a


2523 错误 不能在参数初始化表达式中使用 " yield" 表达式。
parameter initializer.

'await' expres s ions c annot be us ed in a


2524 错误 不能在参数初始化表达式中使用 " await" 表达式。
parameter initializer.

I nitializer provides no value for this


初始化表达式没有为此绑定元素提供此任何值,且该绑定元素没
2525 错误 binding element and the binding
有默认值。
element has no default value.

A 'this ' type is available only in a non-


2526 错误 " this " 类型仅在类或接口的非静态成员中可用。
s tatic member of a c las s or interfac e.

T he inferred type of '{0 }' referenc es an


“{0 }”的推断类型引用不可访问的 " this " 类型。需要类型批
2527 错误 inac c es s ible 'this ' type. A type
注。
annotation is nec es s ary.

A module c annot have multiple default


2528 错误 一个模块不能具有多个默认导出。
exports .

D uplic ate identifier '{0 }'. C ompiler D uplic ate identifier '{0 }'. C ompiler res erves name
2529 错误 res erves name '{1 }' in top level s c ope '{1 }' in top level s c ope of a module c ontaining
of a module c ontaining as ync func tions . as ync func tions .

P roperty '{0 }' is inc ompatible with


2530 错误
index s ignature.

2531 错误 O bjec t is pos s ibly 'null'.

2532 错误 O bjec t is pos s ibly 'undefined'.

2533 错误 O bjec t is pos s ibly 'null' or 'undefined'.

A func tion returning 'never' c annot have


2534 错误
a reac hable end point.

E num type '{0 }' has members with


2535 错误
initializers that are not literals .

Type '{0 }' c annot be us ed to index type


2536 错误
'{1 }'.

Type '{0 }' has no matc hing index


2537 错误
s ignature for type '{1 }'.

Type '{0 }' c annot be us ed as an index


2538 错误
type.

C annot as s ign to '{0 }' bec aus e it is not


2539 错误
a variable.

C annot as s ign to '{0 }' bec aus e it is a


2540 错误
c ons tant or a read- only property.

T he target of an as s ignment mus t be a


2541 错误
variable or a property ac c es s .

I ndex s ignature in type '{0 }' only


2542 错误
permits reading.

D uplic ate identifier '_newTarget'.


C ompiler us es variable dec laration
2543 错误
'_newTarget' to c apture 'new.target'
meta- property referenc e.

E xpres s ion res olves to variable


dec laration '_newTarget' that c ompiler
2544 错误
us es to c apture 'new.target' meta-
property referenc e.

J SX element attributes type '{0 }' may J SX element attributes type '{0 }' may not be a
2600 错误
not be a union type. union type.

T he return type of a J SX element


2601 错误 J SX 元素构造函数的返回类型必须返回对象类型。
c ons truc tor mus t return an objec t type.

J SX element implic itly has type 'any'


J SX 元素隐式具有类型 " any" ,因为不存在全局类型
2602 错误 bec aus e the global type 'J SX.E lement'
" J SX.E lement" 。
does not exis t.

P roperty '{0 }' in type '{1 }' is not


2603 错误 类型“{1 }”中的属性“{0 }”不可分配给类型“{2 }”
as s ignable to type '{2 }'

J SX element type '{0 }' does not have


2604 错误 J SX 元素类型“{0 }”不具有任何构造签名或调用签名。
any c ons truc t or c all s ignatures .

J SX element type '{0 }' is not a


2605 错误 J SX 元素类型“{0 }”不是 J SX 元素的构造函数。
c ons truc tor func tion for J SX elements .

P roperty '{0 }' of J SX s pread attribute is


2606 错误 J SX 展开特性的“{0 }”属性不能分配给目标属性。
not as s ignable to target property.

J SX element c las s does not s upport


2607 错误 attributes bec aus e it does not have a J SX 元素类不支持特性,因为它不具有“{0 }”属性
'{0 }' property

T he global type 'J SX.{0 }' may not have


2608 错误 全局类型“J SX.{0 }”不可以具有多个属性
more than one property

2609 错误 J SX s pread c hild mus t be an array type.

C annot emit names pac ed J SX elements


2650 错误 无法发出 Reac t 中带命名空间的 J SX 元素
in Reac t

A member initializer in a enum


dec laration c annot referenc e members 枚举声明中的成员初始化表达式不能引用在其后声明的成员(包
2651 错误
dec lared after it, inc luding members 括在其他枚举中定义的成员)。
defined in other enums .

M erged dec laration '{0 }' c annot inc lude


a default export dec laration. C ons ider 合并声明“{0 }”不能包含默认导出声明。请考虑改为添加一个独
2652 错误
adding a s eparate 'export default {0 }' 立的“导出默认 {0 }”声明。
dec laration ins tead.

N on- abs trac t c las s expres s ion does


2653 错误 not implement inherited abs trac t 非抽象类表达式不会实现继承自“{1 }”类的抽象成员“{0 }”。
member '{0 }' from c las s '{1 }'.

E xported external pac kage typings file


c annot c ontain triples las h referenc es . 导出的外部包键入文件不能包含三斜线引用。请与包作者联系或
2654 错误
P leas e c ontac t the pac kage author to 更新包定义。
update the pac kage definition.

E xported external pac kage typings file


'{0 }' is not a module. P leas e c ontac t 导出的外部包键入文件“{0 }”不是一个模块。请与包作者联系或
2656 错误
the pac kage author to update the 更新包定义。
pac kage definition.

J SX expres s ions mus t have one parent


2657 错误 J SX 表达式必须具有一个父元素
element

Type '{0 }' provides no matc h for the


2658 错误 类型“{0 }”提供程序与签名“{1 }”不匹配
s ignature '{1 }'

's uper' is only allowed in members of 's uper' is only allowed in members of objec t literal
2659 错误 objec t literal expres s ions when option expres s ions when option 'target' is 'E S2 0 1 5 ' or
'target' is 'E S2 0 1 5 ' or higher. higher.

's uper' c an only be referenc ed in


's uper' c an only be referenc ed in members of
2660 错误 members of derived c las s es or objec t
derived c las s es or objec t literal expres s ions .
literal expres s ions .

C annot export '{0 }'. O nly loc al


C annot re- export name that is not defined in the
2661 错误 dec larations c an be exported from a
module.
module.

C annot find name '{0 }'. D id you mean C annot find name '{0 }'. D id you mean the s tatic
2662 错误
the s tatic member '{1 }.{0 }'? member '{1 }.{0 }'?

C annot find name '{0 }'. D id you mean C annot find name '{0 }'. D id you mean the ins tanc e
2663 错误
the ins tanc e member 'this .{0 }'? member 'this .{0 }'?

I nvalid module name in augmentation, I nvalid module name in augmentation, module


2664 错误
module '{0 }' c annot be found. '{0 }' c annot be found.

I nvalid module name in augmentation.


M odule '{0 }' res olves to an untyped M odule augmentation c annot introduc e new names
2665 错误
module at '{1 }', whic h c annot be in the top level s c ope.
augmented.

E xports and export as s ignments are not E xports and export as s ignments are not permitted
2666 错误
permitted in module augmentations . in module augmentations .

I mports are not permitted in module I mports are not permitted in module
2667 错误 augmentations . C ons ider moving them augmentations . C ons ider moving them to the
to the enc los ing external module. enc los ing external module.

'export' modifier c annot be applied to


'export' modifier c annot be applied to ambient
ambient modules and module
2668 错误 modules and module augmentations s inc e they are
augmentations s inc e they are always
always vis ible.
vis ible.

A ugmentations for the global s c ope c an


A ugmentations for the global s c ope c an only be
only be direc tly nes ted in external
2669 错误 direc tly nes ted in external modules or ambient
modules or ambient module
module dec larations .
dec larations .

A ugmentations for the global s c ope A ugmentations for the global s c ope s hould have
2670 错误 s hould have 'dec lare' modifier unles s 'dec lare' modifier unles s they appear in already
they appear in already ambient c ontext. ambient c ontext.

C annot augment module '{0 }' bec aus e C annot augment module '{0 }' bec aus e it res olves
2671 错误
it res olves to a non- module entity. to a non- module entity.

C annot as s ign a '{0 }' c ons truc tor type


2672 错误
to a '{1 }' c ons truc tor type.

C ons truc tor of c las s '{0 }' is private


2673 错误 and only ac c es s ible within the c las s
dec laration.

C ons truc tor of c las s '{0 }' is protec ted


2674 错误 and only ac c es s ible within the c las s
dec laration.

C annot extend a c las s '{0 }'. C las s


2675 错误
c ons truc tor is marked as private.

A c c es s ors mus t both be abs trac t or


2676 错误
non- abs trac t.

A type predic ate's type mus t be


2677 错误
as s ignable to its parameter's type.

Type '{0 }' is not c omparable to type


2678 错误
'{1 }'.

A func tion that is c alled with the 'new'


2679 错误 keyword c annot have a 'this ' type that
is 'void'.

A 'this ' parameter mus t be the firs t


2680 错误
parameter.

A c ons truc tor c annot have a 'this '


2681 错误
parameter.

'get' and 's et' ac c es s or mus t have the


2682 错误
s ame 'this ' type.

'this ' implic itly has type 'any' bec aus e


2683 错误
it does not have a type annotation.

T he 'this ' c ontext of type '{0 }' is not


2684 错误 as s ignable to method's 'this ' of type
'{1 }'.

T he 'this ' types of eac h s ignature are


2685 错误
inc ompatible.

'{0 }' refers to a U M D global, but the


2686 错误 c urrent file is a module. C ons ider
adding an import ins tead.

A ll dec larations of '{0 }' mus t have


2687 错误
identic al modifiers .

2688 错误 C annot find type definition file for '{0 }'.

C annot extend an interfac e '{0 }'. D id


2689 错误
you mean 'implements '?

A c las s mus t be dec lared after its bas e


2690 错误
c las s .

A n import path c annot end with a '{0 }'


2691 错误 extens ion. C ons ider importing '{1 }'
ins tead.

'{0 }' is a primitive, but '{1 }' is a


2692 错误 wrapper objec t. P refer us ing '{0 }' when
pos s ible.

'{0 }' only refers to a type, but is being


2693 错误
us ed as a value here.

N ames pac e '{0 }' has no exported


2694 错误
member '{1 }'.

L eft s ide of c omma operator is unus ed


2695 错误
and has no s ide effec ts .

T he 'O bjec t' type is as s ignable to very


2696 错误 few other types . D id you mean to us e
the 'any' type ins tead?

A n as ync func tion or method mus t


return a 'P romis e'. M ake s ure you have
2697 错误
a dec laration for 'P romis e' or inc lude
'E S2 0 1 5 ' in your --lib option.

Spread types may only be c reated from


2698 错误
objec t types .

Res t types may only be c reated from


2700 错误
objec t types .

T he target of an objec t res t as s ignment


2701 错误 mus t be a variable or a property
ac c es s .

'{0 }' only refers to a type, but is being


2702 错误
us ed as a names pac e here.

T he operand of a delete operator mus t


2703 错误
be a property referenc e

T he operand of a delete operator c annot


2704 错误
be a read- only property

I mport dec laration '{0 }' is us ing


4000 错误 导入声明“{0 }”使用的是专用名称“{1 }”。
private name '{1 }'.

Type parameter '{0 }' of exported c las s


4002 错误 导出类的类型参数“{0 }”具有或正在使用专用名称“{1 }”。
has or is us ing private name '{1 }'.

Type parameter '{0 }' of exported


4004 错误 interfac e has or is us ing private name 导出接口的类型参数“{0 }”具有或正在使用专用名称“{1 }”。
'{1 }'.

Type parameter '{0 }' of c ons truc tor


导出接口中的构造函数签名的类型参数“{0 }”具有或正在使用专
4006 错误 s ignature from exported interfac e has or
用名称“{1 }”。
is us ing private name '{1 }'.

Type parameter '{0 }' of c all s ignature


导出接口中的调用签名的类型参数“{0 }”具有或正在使用专用名
4008 错误 from exported interfac e has or is us ing
称“{1 }”。
private name '{1 }'.

Type parameter '{0 }' of public s tatic


导出类中的公共静态方法的类型参数“{0 }”具有或正在使用专用
4010 错误 method from exported c las s has or is
名称“{1 }”。
us ing private name '{1 }'.

Type parameter '{0 }' of public method


导出类中的公共方法的类型参数“{0 }”具有或正在使用专用名
4012 错误 from exported c las s has or is us ing
称“{1 }”。
private name '{1 }'.

Type parameter '{0 }' of method from


导出接口中的方法的类型参数“{0 }”具有或正在使用专用名
4014 错误 exported interfac e has or is us ing
称“{1 }”。
private name '{1 }'.

Type parameter '{0 }' of exported


4016 错误 func tion has or is us ing private name 导出函数的类型参数“{0 }”具有或正在使用专用名称“{1 }”。
'{1 }'.

I mplements c laus e of exported c las s 导出的类“{0 }”的 I mplements 子句具有或正在使用专用名


4019 错误
'{0 }' has or is us ing private name '{1 }'. 称“{1 }”。

E xtends c laus e of exported c las s '{0 }' 导出的类“{0 }”的 extends 子句具有或正在使用专用名
4020 错误
has or is us ing private name '{1 }'. 称“{1 }”。

E xtends c laus e of exported interfac e 导出接口“{0 }”的 extends 子句具有或正在使用专用名


4022 错误
'{0 }' has or is us ing private name '{1 }'. 称“{1 }”。

E xported variable '{0 }' has or is us ing


导出的变量“{0 }”具有或正在使用外部模块“{2 }”中的名
4023 错误 name '{1 }' from external module {2 }
称“{1 }”,但不能为其命名。
but c annot be named.

E xported variable '{0 }' has or is us ing 导出的变量“{0 }”具有或正在使用私有模块“{2 }”中的名


4024 错误
name '{1 }' from private module '{2 }'. 称“{1 }”。

E xported variable '{0 }' has or is us ing


4025 错误 导出的变量“{0 }”具有或正在使用专用名称“{1 }”。
private name '{1 }'.

P ublic s tatic property '{0 }' of exported


c las s has or is us ing name '{1 }' from 导出类的公共静态属性“{0 }”具有或正在使用外部模块“{2 }”中
4026 错误
external module {2 } but c annot be 的名称“{1 }”,但不能为其命名。
named.

P ublic s tatic property '{0 }' of exported


导出类的公共静态属性“{0 }”具有或正在使用外部模块“{2 }”中
4027 错误 c las s has or is us ing name '{1 }' from
的名称“{1 }”。
private module '{2 }'.

P ublic s tatic property '{0 }' of exported


4028 错误 c las s has or is us ing private name 导出类的公共静态属性“{0 }”具有或正在使用专用名称“{1 }”。
'{1 }'.

P ublic property '{0 }' of exported c las s


导出类的公共属性“{0 }”具有或正在使用外部模块“{2 }”中的名
4029 错误 has or is us ing name '{1 }' from external
称“{1 }”,但不能为其命名。
module {2 } but c annot be named.

P ublic property '{0 }' of exported c las s


导出类的公共属性“{0 }”具有或正在使用私有模块“{2 }”中的名
4030 错误 has or is us ing name '{1 }' from private
称“{1 }”。
module '{2 }'.

P ublic property '{0 }' of exported c las s


4031 错误 导出类的公共属性“{0 }”具有或正在使用专用名称“{1 }”。
has or is us ing private name '{1 }'.

P roperty '{0 }' of exported interfac e has


导出接口的属性“{0 }”具有或正在使用私有模块“{2 }”中的名
4032 错误 or is us ing name '{1 }' from private
称“{1 }”。
module '{2 }'.

P roperty '{0 }' of exported interfac e has


4033 错误 导出接口的属性“{0 }”具有或正在使用专用名称“{1 }”。
or is us ing private name '{1 }'.

P arameter '{0 }' of public s tatic


property s etter from exported c las s has 导出类中的公共静态属性 s etter 的参数“{0 }”具有或正在使用
4034 错误
or is us ing name '{1 }' from private 私有模块“{2 }”中的名称“{1 }”。
module '{2 }'.

P arameter '{0 }' of public s tatic


导出类中的公共静态属性 s etter 的参数“{0 }”具有或正在使用
4035 错误 property s etter from exported c las s has
专用名称“{1 }”。
or is us ing private name '{1 }'.

P arameter '{0 }' of public property


s etter from exported c las s has or is 导出类中的公共属性 s etter 的参数“{0 }”具有或正在使用私有
4036 错误
us ing name '{1 }' from private module 模块“{2 }”中的名称“{1 }”。
'{2 }'.

P arameter '{0 }' of public property


导出类中的公共属性 s etter 的参数“{0 }”具有或正在使用专用
4037 错误 s etter from exported c las s has or is
名称“{1 }”。
us ing private name '{1 }'.

Return type of public s tatic property


getter from exported c las s has or is 导出类中的公共静态属性 getter 的返回类型具有或正在使用外
4038 错误
us ing name '{0 }' from external module 部模块“{1 }”中的名称“{0 }”,但不能为其命名。
{1 } but c annot be named.

Return type of public s tatic property


getter from exported c las s has or is 导出类中的公共静态属性 getter 的返回类型具有或正在使用私
4039 错误
us ing name '{0 }' from private module 有模块“{1 }”中的名称“{0 }”。
'{1 }'.

Return type of public s tatic property


导出类中的公共静态属性 getter 的返回类型具有或正在使用专
4040 错误 getter from exported c las s has or is
用名称“{0 }”。
us ing private name '{0 }'.

Return type of public property getter


from exported c las s has or is us ing 导出类中的公共属性 getter 的返回类型具有或正在使用外部模
4041 错误
name '{0 }' from external module {1 } 块“{1 }”中的名称“{0 }”,但不能为其命名。
but c annot be named.

Return type of public property getter


导出类中的公共属性 getter 的返回类型具有或正在使用私有模
4042 错误 from exported c las s has or is us ing
块“{1 }”中的名称“{0 }”。
name '{0 }' from private module '{1 }'.

Return type of public property getter


导出类中的公共属性 getter 的返回类型具有或正在使用专用名
4043 错误 from exported c las s has or is us ing
称“{0 }”。
private name '{0 }'.

Return type of c ons truc tor s ignature


导出接口中的构造函数签名的返回类型具有或正在使用私有模
4044 错误 from exported interfac e has or is us ing
块“{1 }”中的名称“{0 }”。
name '{0 }' from private module '{1 }'.

Return type of c ons truc tor s ignature


导出接口中的构造函数签名的返回类型具有或正在使用专用名
4045 错误 from exported interfac e has or is us ing
称“{0 }”。
private name '{0 }'.

Return type of c all s ignature from


导出接口中的调用签名的返回类型具有或正在使用私有模
4046 错误 exported interfac e has or is us ing name
块“{1 }”中的名称“{0 }”。
'{0 }' from private module '{1 }'.

Return type of c all s ignature from


导出接口中的调用签名的返回类型具有或正在使用专用名
4047 错误 exported interfac e has or is us ing
称“{0 }”。
private name '{0 }'.

Return type of index s ignature from


导出接口中的索引签名的返回类型具有或正在使用私有模
4048 错误 exported interfac e has or is us ing name
块“{1 }”中的名称“{0 }”。
'{0 }' from private module '{1 }'.

Return type of index s ignature from


导出接口中的索引签名的返回类型具有或正在使用专用名
4049 错误 exported interfac e has or is us ing
称“{0 }”。
private name '{0 }'.

Return type of public s tatic method from


exported c las s has or is us ing name 导出类中的公共静态方法的返回类型具有或正在使用外部模
4050 错误
'{0 }' from external module {1 } but 块“{1 }”中的名称“{0 }”,但不能为其命名。
c annot be named.

Return type of public s tatic method from


导出类中的公共静态方法的返回类型具有或正在使用私有模
4051 错误 exported c las s has or is us ing name
块“{1 }”中的名称“{0 }”。
'{0 }' from private module '{1 }'.

Return type of public s tatic method from


导出类中的公共静态方法的返回类型具有或正在使用专用名
4052 错误 exported c las s has or is us ing private
称“{0 }”。
name '{0 }'.

Return type of public method from


exported c las s has or is us ing name 导出类中的公共方法的返回类型具有或正在使用外部模
4053 错误
'{0 }' from external module {1 } but 块“{1 }”中的名称“{0 }”,但不能为其命名。
c annot be named.

Return type of public method from


导出类中的公共方法的返回类型具有或正在使用私有模
4054 错误 exported c las s has or is us ing name
块“{1 }”中的名称“{0 }”。
'{0 }' from private module '{1 }'.

Return type of public method from


导出类中的公共方法的返回类型具有或正在使用专用名
4055 错误 exported c las s has or is us ing private
称“{0 }”。
name '{0 }'.

Return type of method from exported


导出接口中的方法的返回类型具有或正在使用私有模块“{1 }”中
4056 错误 interfac e has or is us ing name '{0 }'
的名称“{0 }”。
from private module '{1 }'.

Return type of method from exported


4057 错误 interfac e has or is us ing private name 导出接口中的方法的返回类型具有或正在使用专用名称“{0 }”。
'{0 }'.

Return type of exported func tion has or


导出函数的返回类型具有或正在使用外部模块“{1 }”中的名
4058 错误 is us ing name '{0 }' from external
称“{0 }”,但不能为其命名。
module {1 } but c annot be named.

Return type of exported func tion has or


导出函数的返回类型具有或正在使用私有模块“{1 }”中的名
4059 错误 is us ing name '{0 }' from private module
称“{0 }”。
'{1 }'.

Return type of exported func tion has or


4060 错误 导出函数的返回类型具有或正在使用专用名称“{0 }”。
is us ing private name '{0 }'.

P arameter '{0 }' of c ons truc tor from


exported c las s has or is us ing name 导出类中的构造函数的参数“{0 }”具有或正在使用外部模
4061 错误
'{1 }' from external module {2 } but 块“{2 }”中的名称“{1 }”,但不能为其命名。
c annot be named.

P arameter '{0 }' of c ons truc tor from


导出类中的构造函数的参数“{0 }”具有或正在使用私有模
4062 错误 exported c las s has or is us ing name
块“{2 }”中的名称“{1 }”。
'{1 }' from private module '{2 }'.

P arameter '{0 }' of c ons truc tor from


导出类中的构造函数的参数“{0 }”具有或正在使用专用名
4063 错误 exported c las s has or is us ing private
称“{1 }”。
name '{1 }'.

P arameter '{0 }' of c ons truc tor


s ignature from exported interfac e has or 导出接口中的构造函数签名的参数“{0 }”具有或正在使用私有模
4064 错误
is us ing name '{1 }' from private module 块“{2 }”中的名称“{1 }”。
'{2 }'.

P arameter '{0 }' of c ons truc tor


导出接口中的构造函数签名的参数“{0 }”具有或正在使用专用名
4065 错误 s ignature from exported interfac e has or
称“{1 }”。
is us ing private name '{1 }'.

P arameter '{0 }' of c all s ignature from


导出接口中的调用签名的参数“{0 }”具有或正在使用私有模
4066 错误 exported interfac e has or is us ing name
块“{2 }”中的名称“{1 }”。
'{1 }' from private module '{2 }'.

P arameter '{0 }' of c all s ignature from


导出接口中的调用签名的参数“{0 }”具有或正在使用专用名
4067 错误 exported interfac e has or is us ing
称“{1 }”。
private name '{1 }'.

P arameter '{0 }' of public s tatic method


from exported c las s has or is us ing 导出类中的公共静态方法的参数“{0 }”具有或正在使用外部模
4068 错误
name '{1 }' from external module {2 } 块“{2 }”中的名称“{1 }”,但不能为其命名。
but c annot be named.

P arameter '{0 }' of public s tatic method


导出类中的公共静态方法的参数“{0 }”具有或正在使用私有模
4069 错误 from exported c las s has or is us ing
块“{2 }”中的名称“{1 }”。
name '{1 }' from private module '{2 }'.

P arameter '{0 }' of public s tatic method


导出类中的公共静态方法的参数“{0 }”具有或正在使用专用名
4070 错误 from exported c las s has or is us ing
称“{1 }”。
private name '{1 }'.

P arameter '{0 }' of public method from


exported c las s has or is us ing name 导出类中的公共方法的参数“{0 }”具有或正在使用外部模
4071 错误
'{1 }' from external module {2 } but 块“{2 }”中的名称“{1 }”,但不能为其命名。
c annot be named.

P arameter '{0 }' of public method from


导出类中的公共方法的参数“{0 }”具有或正在使用私有模
4072 错误 exported c las s has or is us ing name
块“{2 }”中的名称“{1 }”。
'{1 }' from private module '{2 }'.

P arameter '{0 }' of public method from


导出类中的公共方法的参数“{0 }”具有或正在使用专用名
4073 错误 exported c las s has or is us ing private
称“{1 }”。
name '{1 }'.

P arameter '{0 }' of method from


导出接口中的方法的参数“{0 }”具有或正在使用私有模
4074 错误 exported interfac e has or is us ing name
块“{2 }”中的名称“{1 }”。
'{1 }' from private module '{2 }'.

P arameter '{0 }' of method from


导出接口中的方法的参数“{0 }”具有或正在使用专用名
4075 错误 exported interfac e has or is us ing
称“{1 }”。
private name '{1 }'.

P arameter '{0 }' of exported func tion


导出函数的参数“{0 }”具有或正在使用外部模块 {2 } 中的名
4076 错误 has or is us ing name '{1 }' from external
称“{1 }”,但不能为其命名。
module {2 } but c annot be named.

P arameter '{0 }' of exported func tion


导出函数的参数“{0 }”具有或正在使用私有模块“{2 }”中的名
4077 错误 has or is us ing name '{1 }' from private
称“{1 }”。
module '{2 }'.

P arameter '{0 }' of exported func tion


4078 错误 导出函数的参数“{0 }”具有或正在使用专用名称“{1 }”。
has or is us ing private name '{1 }'.

E xported type alias '{0 }' has or is


4081 错误 导出的类型别名“{0 }”已经或正在使用专用名称“{1 }”。
us ing private name '{1 }'.

D efault export of the module has or is


4082 错误 模块的默认导出具有或正在使用专用名称“{0 }”。
us ing private name '{0 }'.

Type parameter '{0 }' of exported type


4083 错误
alias has or is us ing private name '{1 }'.

C onflic ting definitions for '{0 }' found at


'{1 }' and '{2 }'. C ons ider ins talling a
4090 信息
s pec ific vers ion of this library to
res olve the c onflic t.

P arameter '{0 }' of index s ignature from


4091 错误 exported interfac e has or is us ing name
'{1 }' from private module '{2 }'.

P arameter '{0 }' of index s ignature from


4092 错误 exported interfac e has or is us ing
private name '{1 }'.

T he c urrent hos t does not s upport the


5001 错误 当前主机不支持“{0 }”选项。
'{0 }' option.

C annot find the c ommon s ubdirec tory


5009 错误 找不到输入文件的公共子目录路径。
path for the input files .

File s pec ific ation c annot end in a


5010 错误 rec urs ive direc tory wildc ard ('* * '):
'{0 }'.

File s pec ific ation c annot c ontain


5011 错误 multiple rec urs ive direc tory wildc ards
('* * '): '{0 }'.

5012 错误 C annot read file '{0 }': {1 } 无法读取文件“{0 }”: {1 }

5013 错误 U ns upported file enc oding. 文件编码不受支持。

5014 错误 Failed to pars e file '{0 }': {1 }. 未能分析文件“{0 }”: {1 }。

5023 错误 U nknown c ompiler option '{0 }'. 未知的编译器选项“{0 }”。

C ompiler option '{0 }' requires a value


5024 错误 编译器选项“{0 }”需要类型 {1 } 的值。
of type {1 }.

5033 错误 C ould not write file '{0 }': {1 } 无法写入文件“{0 }”: {1 }

O ption 'projec t' c annot be mixed with


5042 错误 选项 " projec t" 在命令行上不能与源文件混合使用。
s ourc e files on a c ommand line.

O ption 'is olatedM odules ' c an only be


us ed when either option '- - module' is 选项 " is olatedM odules " 只可在提供了选项 " - - module"
5047 错误
provided or option 'target' is 'E S2 0 1 5 ' 或者选项 " target" 是 " E S2 0 1 5 " 或更高版本时使用。
or higher.

O ption '{0 } c an only be us ed when


仅当提供了选项 " - - inlineSourc es " 或选项 " - -
5051 错误 either option '- - inlineSourc eM ap' or
s ourc eM ap" 时,才能使用选项 " inlineSourc es " 。
option '- - s ourc eM ap' is provided.

O ption '{0 }' c annot be s pec ified


5052 错误 无法在不指定选项“{1 }”的情况下指定选项“{0 }”。
without s pec ifying option '{1 }'.

O ption '{0 }' c annot be s pec ified with


5053 错误 选项“{0 }”不能与选项“{1 }”同时指定。
option '{1 }'.

A 'ts c onfig.js on' file is already defined


5054 错误 已在“{0 }”中定义了 " ts c onfig.js on" 文件。
at: '{0 }'.

C annot write file '{0 }' bec aus e it would


5055 错误 无法写入文件“{0 }”,因为它会覆盖输入文件。
overwrite input file.

C annot write file '{0 }' bec aus e it would


5056 错误 无法写入文件“{0 }”,因为它会被多个输入文件覆盖。
be overwritten by multiple input files .

C annot find a ts c onfig.js on file at the


5057 错误 无法在指定目录找到 ts c onfig.js on 文件:“{0 }”
s pec ified direc tory: '{0 }'

5058 错误 T he s pec ified path does not exis t: '{0 }' 指定的路径不存在:“{0 }”

I nvalid value for '- - reac tN ames pac e'. I nvalide value for '- - reac tN ames pac e'. '{0 }' is not
5059 错误
'{0 }' is not a valid identifier. a valid identifier.

O ption 'paths ' c annot be us ed without


5060 错误
s pec ifying '- - bas eU rl' option.

P attern '{0 }' c an have at mos t one '* '


5061 错误
c harac ter

Subs titution '{0 }' in pattern '{1 }' in


5062 错误
c an have at mos t one '* ' c harac ter

Subs titutions for pattern '{0 }' s hould


5063 错误
be an array.

Subs titution '{0 }' for pattern '{1 }' has


5064 错误 inc orrec t type, expec ted 's tring', got
'{2 }'.

File s pec ific ation c annot c ontain a


parent direc tory ('..') that appears after
5065 错误
a rec urs ive direc tory wildc ard ('* * '):
'{0 }'.

Subs titutions for pattern '{0 }' s houldn't


5066 错误
be an empty array.

I nvalid value for 'js xFac tory'. '{0 }' is


5067 错误
not a valid identifier or qualified- name.

C onc atenate and emit output to s ingle


6001 信息 连接输出并将其发出到单个文件。
file.

6002 信息 G enerates c orres ponding '.d.ts ' file. 生成相应的 " .d.ts " 文件。

Spec ify the loc ation where debugger


6003 信息 s hould loc ate map files ins tead of 指定调试程序应放置映射文件的位置而不是生成的位置。
generated loc ations .

Spec ify the loc ation where debugger


6004 信息 s hould loc ate TypeSc ript files ins tead of 指定调试程序应放置 TypeSc ript 文件的位置而不是源位置。
s ourc e loc ations .

6005 信息 Watc h input files . 监视输入文件。

Redirec t output s truc ture to the


6006 信息 将输出结构重定向到目录。
direc tory.

D o not eras e c ons t enum dec larations


6007 信息 请勿清除生成代码中的常数枚举声明。
in generated c ode.

D o not emit outputs if any errors were


6008 信息 如果报告了任何错误,请不要发出输出。
reported.

6009 信息 D o not emit c omments to output. 请勿将注释发出到输出。

6010 信息 D o not emit outputs . 请勿发出输出。

A llow default imports from modules with


允许从不带默认输出的模块中默认输入。这不会影响代码发出,
6011 信息 no default export. T his does not affec t
只是类型检查。
c ode emit, jus t typec hec king.

6012 信息 Skip type c hec king of dec laration files .

Spec ify E C M A Sc ript target vers ion:


指定 E C M A Sc ript 目标版本: " E S3 " (默认)、" E S5 " 或
6015 信息 'E S3 ' (default), 'E S5 ', 'E S2 0 1 5 ',
" E S2 0 1 5 " (实验)
'E S2 0 1 6 ', 'E S2 0 1 7 ', or 'E SN E XT '

Spec ify module c ode generation: 指定模块代码生成:


6016 信息 'c ommonjs ', 'amd', 's ys tem', 'umd' or " c ommonjs " 、" amd" 、" s ys tem" 、" umd" 或
'es 2 0 1 5 ' " es 2 0 1 5 "

6017 信息 P rint this mes s age. 打印此消息。

6019 信息 P rint the c ompiler's vers ion. 打印编译器的版本。

C ompile the projec t in the given


6020 信息 在指定目录中编译项目。
direc tory.

6023 信息 Syntax: {0 } 语法: {0 }

6024 信息 options 选项

6025 信息 file 文件

6026 信息 E xamples : {0 } 示例: {0 }

6027 信息 O ptions : 选项:

6029 信息 Vers ion {0 } 版本 {0 }

I ns ert c ommand line options and files


6030 信息 从文件插入命令行选项和文件。
from a file.

File c hange detec ted. Starting


6032 信息 检测到文件更改。正在启动增量编译...
inc remental c ompilation...

6034 信息 KI N D 种类

6035 信息 FI L E 文件

6036 信息 V E RSI O N 版本

6037 信息 L O C AT I O N 位置

6038 信息 D I RE C T O RY 目录

6039 信息 ST RAT E G Y

C ompilation c omplete. Watc hing for file


6042 信息 编译完成。查看文件更改。
c hanges .

6043 信息 G enerates c orres ponding '.map' file. 生成相应的 " .map" 文件。

C ompiler option '{0 }' expec ts an


6044 错误 编译器选项“{0 }”需要参数。
argument.

U nterminated quoted s tring in res pons e


6045 错误 响应文件“{0 }”中引号不配对。
file '{0 }'.

A rgument for '- - module' option mus t be


6046 错误 A rgument for '{0 }' option mus t be: {1 } 'c ommonjs ', 'amd', 's ys tem', 'umd', 'es 2 0 1 5 ', or
'none'.

L oc ale mus t be of the form or - . For 区域设置必须采用 <语言> 或 <语言>- <区域> 形式。例
6048 错误
example '{0 }' or '{1 }'. 如“{0 }”或“{1 }”。

6049 错误 U ns upported loc ale '{0 }'. 区域设置“{0 }”不受支持。

6050 错误 U nable to open file '{0 }'. 无法打开文件“{0 }”。

6051 错误 C orrupted loc ale file {0 }. 区域设置文件 {0 } 已损坏。

Rais e error on expres s ions and


6052 信息 对具有隐式 " any" 类型的表达式和声明引发错误。
dec larations with an implied 'any' type.

6053 错误 File '{0 }' not found. 找不到文件“{0 }”。

File '{0 }' has uns upported extens ion.


6054 错误 不支持文件“{0 }”的扩展名。唯一支持的扩展名为 {1 }。
T he only s upported extens ions are {1 }.

Suppres s noI mplic itA ny errors for


6055 信息 indexing objec ts lac king index 抑制缺少索引签名的索引对象的 noI mplic itA ny 错误。
s ignatures .

D o not emit dec larations for c ode that


6056 信息 请勿对具有 " @ internal" 注释的代码发出声明。
has an '@ internal' annotation.

Spec ify the root direc tory of input files .


指定输入文件的根目录。与 - - outD ir 一起用于控制输出目录结
6058 信息 U s e to c ontrol the output direc tory
构。
s truc ture with - - outD ir.

File '{0 }' is not under 'rootD ir' '{1 }'.


文件“{0 }”不在 " rootD ir" “{1 }”下。" rootD ir" 应包含所有
6059 错误 'rootD ir' is expec ted to c ontain all
源文件。
s ourc e files .

Spec ify the end of line s equenc e to be


指定发出文件时要使用的行序列结尾: " C RL F" (dos )或 " L F"
6060 信息 us ed when emitting files : 'C RL F' (dos )
(unix)。
or 'L F' (unix).

6061 信息 N E WL I N E 换行符

O ption '{0 }' c an only be s pec ified in


6064 错误
'ts c onfig.js on' file.

E nables experimental s upport for E S7


6065 信息 对 E S7 修饰器启用实验支持。
dec orators .

E nables experimental s upport for


6066 信息 对发出修饰器的类型元数据启用实验支持。
emitting type metadata for dec orators .

E nables experimental s upport for E S7


6068 信息 对 E S7 异步函数启用实验支持。
as ync func tions .

Spec ify module res olution s trategy:


指定模块解决策略: " node" (N ode.js ) 或 " c las s ic "
6069 信息 'node' (N ode.js ) or 'c las s ic ' (TypeSc ript
(TypeSc ript pre- 1 .6 )。
pre- 1 .6 ).

I nitializes a TypeSc ript projec t and


6070 信息 初始化 TypeSc ript 项目并创建 ts c onfig.js on 文件。
c reates a ts c onfig.js on file.

Suc c es s fully c reated a ts c onfig.js on


6071 信息 已成功创建 ts c onfig.js on 文件。
file.

Suppres s exc es s property c hec ks for


6072 信息 取消对象文字的多余属性检查。
objec t literals .

Stylize errors and mes s ages us ing c olor


6073 信息 使用颜色和上下文风格化错误和消息。(实验)
and c ontext. (experimental)

6074 信息 D o not report errors on unus ed labels . 不报告有关未使用的标签的错误。

Report error when not all c ode paths in


6075 信息 在函数中的所有代码路径并非都返回值时报告错误。
func tion return a value.

Report errors for fallthrough c as es in


6076 信息 报告 s witc h 语句中遇到 fallthrough 情况的错误。
s witc h s tatement.

D o not report errors on unreac hable


6077 信息 不报告有关不可访问的代码的错误。
c ode.

D is allow inc ons is tently- c as ed


6078 信息 不允许对同一文件采用大小不一致的引用。
referenc es to the s ame file.

Spec ify library files to be inc luded in the


6079 信息
c ompilation:

Spec ify J SX c ode generation: 'pres erve'


6080 信息 指定 J SX 代码生成: " pres erve" 或 " reac t"
or 'reac t'

File '{0 }' has an uns upported


6081 信息 " - - js x" 的参数必须为 " pres erve" 或 " reac t" 。
extens ion, s o s kipping it.

O nly 'amd' and 's ys tem' modules are


6082 错误 - - {0 } 旁仅支持 " amd" 和 " s ys tem" 模块。
s upported alongs ide - - {0 }.

Bas e direc tory to res olve non- abs olute


6083 信息 允许编译 J avaSc ript 文件。
module names .

Spec ify the objec t invoked for


Spec ifies the objec t invoked for c reateE lement and
6084 信息 c reateE lement and __s pread when
__s pread when targeting 'reac t' J SX emit
targeting 'reac t' J SX emit

E nable trac ing of the name res olution


6085 信息
proc es s .

======== Res olving module '{0 }' from


6086 信息
'{1 }'. ========

E xplic itly s pec ified module res olution


6087 信息
kind: '{0 }'.

M odule res olution kind is not s pec ified,


6088 信息
us ing '{0 }'.

======== M odule name '{0 }' was


6089 信息 s uc c es s fully res olved to '{1 }'.
========

======== M odule name '{0 }' was not


6090 信息
res olved. ========

'paths ' option is s pec ified, looking for a


6091 信息
pattern to matc h module name '{0 }'.

M odule name '{0 }', matc hed pattern


6092 信息
'{1 }'.

Trying s ubs titution '{0 }', c andidate


6093 信息
module loc ation: '{1 }'.

Res olving module name '{0 }' relative to


6094 信息
bas e url '{1 }' - '{2 }'.

L oading module as file / folder,


6095 信息 c andidate module loc ation '{0 }', target
file type '{1 }'.

6096 信息 File '{0 }' does not exis t.

File '{0 }' exis t - us e it as a name


6097 信息
res olution res ult.

L oading module '{0 }' from


6098 信息 'node_modules ' folder, target file type
'{1 }'.

6099 信息 Found 'pac kage.js on' at '{0 }'.

'pac kage.js on' does not have a 'types '


6100 信息
or 'main' field.

'pac kage.js on' has '{0 }' field '{1 }' that
6101 信息
referenc es '{2 }'.

6102 信息 A llow javas c ript files to be c ompiled.

O ption '{0 }' s hould have array of O ption '{0 }' s hould have array of s trings as a
6103 错误
s trings as a value. value.

C hec king if '{0 }' is the longes t


6104 信息
matc hing prefix for '{1 }' - '{2 }'.

E xpec ted type of '{0 }' field in


6105 信息
'pac kage.js on' to be 's tring', got '{1 }'.

'bas eU rl' option is s et to '{0 }', us ing


6106 信息 this value to res olve non- relative
module name '{1 }'

'rootD irs ' option is s et, us ing it to


6107 信息
res olve relative module name '{0 }'

L onges t matc hing prefix for '{0 }' is


6108 信息
'{1 }'

L oading '{0 }' from the root dir '{1 }',


6109 信息
c andidate loc ation '{2 }'

6110 信息 Trying other entries in 'rootD irs '

M odule res olution us ing 'rootD irs ' has


6111 信息
failed

D o not emit 'us e s tric t' direc tives in D o not emit 'us e s tric t' direc tives in module
6112 信息
module output. output.

6113 信息 E nable s tric t null c hec ks .

U nknown option 'exc ludes '. D id you


6114 错误
mean 'exc lude'?

Rais e error on 'this ' expres s ions with an


6115 信息
implied 'any' type.

======== Res olving type referenc e


6116 信息 direc tive '{0 }', c ontaining file '{1 }',
root direc tory '{2 }'. ========

6117 信息 Res olving us ing primary s earc h paths ...

6118 信息 Res olving from node_modules folder...

======== Type referenc e direc tive


6119 信息 '{0 }' was s uc c es s fully res olved to
'{1 }', primary: {2 }. ========

======== Type referenc e direc tive


6120 信息
'{0 }' was not res olved. ========

Res olving with primary s earc h path


6121 信息
'{0 }'

Root direc tory c annot be determined,


6122 信息
s kipping primary s earc h paths .

======== Res olving type referenc e


6123 信息 direc tive '{0 }', c ontaining file '{1 }',
root direc tory not s et. ========

Type dec laration files to be inc luded in


6124 信息
c ompilation.

L ooking up in 'node_modules ' folder,


6125 信息
initial loc ation '{0 }'

C ontaining file is not s pec ified and root


direc tory c annot be determined,
6126 信息
s kipping lookup in 'node_modules '
folder.

======== Res olving type referenc e


6127 信息 direc tive '{0 }', c ontaining file not s et,
root direc tory '{1 }'. ========

======== Res olving type referenc e


6128 信息 direc tive '{0 }', c ontaining file not s et,
root direc tory not s et. ========

T he c onfig file '{0 }' found does n't


6129 错误
c ontain any s ourc e files .

Res olving real path for '{0 }', res ult


6130 信息
'{1 }'

C annot c ompile modules us ing option


6131 错误 '{0 }' unles s the '- - module' flag is 'amd'
or 's ys tem'.

File name '{0 }' has a '{1 }' extens ion -


6132 信息
s tripping it

6133 错误 '{0 }' is dec lared but never us ed.

6134 信息 Report errors on unus ed loc als .

6135 信息 Report errors on unus ed parameters .

T he maximum dependenc y depth to


6136 信息 s earc h under node_modules and load
J avaSc ript files

N o types s pec ified in 'pac kage.js on', s o


6137 信息
returning 'main' value of '{0 }'

P roperty '{0 }' is dec lared but never


6138 错误
us ed.

6139 信息 I mport emit helpers from 'ts lib'.

A uto dis c overy for typings is enabled in


projec t '{0 }'. Running extra res olution
6140 错误
pas s for module '{1 }' us ing c ac he
loc ation '{2 }'.

P ars e in s tric t mode and emit " us e


6141 信息
s tric t" for eac h s ourc e file

M odule '{0 }' was res olved to '{1 }', but


6142 错误
'- - js x' is not s et.

M odule '{0 }' was res olved to '{1 }', but


6143 错误
'- - allowJ s ' is not s et.

M odule '{0 }' was res olved as loc ally


6144 信息
dec lared ambient module in file '{1 }'.

M odule '{0 }' was res olved as ambient


6145 信息 module dec lared in '{1 }' s inc e this file
was not modified.

Spec ify the J SX fac tory func tion to us e


6146 信息 when targeting 'reac t' J SX emit, e.g.
'Reac t.c reateE lement' or 'h'.

Res olution for module '{0 }' was found in


6147 信息
c ac he.

D irec tory '{0 }' does not exis t, s kipping


6148 信息
all lookups in it.

Variable '{0 }' implic itly has an '{1 }'


7005 错误 变量“{0 }”隐式具有“{1 }”类型。
type.

P arameter '{0 }' implic itly has an '{1 }'


7006 错误 参数“{0 }”隐式具有“{1 }”类型。
type.

M ember '{0 }' implic itly has an '{1 }'


7008 错误 成员“{0 }”隐式包含类型“{1 }”。
type.

'new' expres s ion, whos e target lac ks a


7009 错误 c ons truc t s ignature, implic itly has an 其目标缺少构造签名的 " new" 表达式隐式具有 " any" 类型。
'any' type.

'{0 }', whic h lac ks return- type


7010 错误 annotation, implic itly has an '{1 }' 缺少返回类型批注的“{0 }”隐式具有“{1 }”返回类型。
return type.

Func tion expres s ion, whic h lac ks


7011 错误 return- type annotation, implic itly has 缺少返回类型批注的函数表达式隐式具有“{0 }”返回类型。
an '{0 }' return type.

C ons truc t s ignature, whic h lac ks


7013 错误 return- type annotation, implic itly has 缺少返回类型批注的构造签名隐式具有返回类型 " any" 。
an 'any' return type.

E lement implic itly has an 'any' type


E lement implic itly has an 'any' type bec aus e index
7015 错误 bec aus e index expres s ion is not of type
expres s ion is not of type 'number'.
'number'.

C ould not find a dec laration file for


属性“{0 }”隐式具有类型 " any" ,因为其 " s et" 访问器缺少类
7016 错误 module '{0 }'. '{1 }' implic itly has an
型批注。
'any' type.

E lement implic itly has an 'any' type


7017 错误 bec aus e type '{0 }' has no index 对象类型的索引签名隐式地含有 " any" 类型。
s ignature.

O bjec t literal's property '{0 }' implic itly


7018 错误 对象文字的属性“{0 }”隐式含有“{1 }”类型。
has an '{1 }' type.

Res t parameter '{0 }' implic itly has an


7019 错误 Res t 参数“{0 }”隐式具有 " any[]" 类型。
'any[]' type.

C all s ignature, whic h lac ks return- type


7020 错误 annotation, implic itly has an 'any' 缺少返回类型批注的调用签名隐式具有返回类型 " any" 。
return type.

'{0 }' implic itly has type 'any' bec aus e


it does not have a type annotation and “{0 }”隐式具有类型 " any" ,因为它不具有类型批注,且在其
7022 错误
is referenc ed direc tly or indirec tly in its 自身的初始化表达式中得到直接或间接引用。
own initializer.

'{0 }' implic itly has return type 'any'


bec aus e it does not have a return type
由于“{0 }'”不具有返回类型批注并且在它的一个返回表达式中得
7023 错误 annotation and is referenc ed direc tly or
到直接或间接引用,因此它隐式具有返回类型 " any" 。
indirec tly in one of its return
expres s ions .

Func tion implic itly has return type 'any'


bec aus e it does not have a return type
由于函数不具有返回类型批注并且在它的一个返回表达式中得到
7024 错误 annotation and is referenc ed direc tly or
直接或间接引用,因此它隐式具有返回类型 " any" 。
indirec tly in one of its return
expres s ions .

G enerator implic itly has type '{0 }'


生成器隐式具有类型“{0 }”,因为它不生成任何值。请考虑提供
7025 错误 bec aus e it does not yield any values .
一个返回类型。
C ons ider s upplying a return type.

J SX element implic itly has type 'any'


7026 错误 J SX 元素隐式具有类型 " any" ,因为不存在接口“J SX.{0 }”
bec aus e no interfac e 'J SX.{0 }' exis ts

7027 错误 U nreac hable c ode detec ted. 检测到无法访问的代码。

7028 错误 U nus ed label. 未使用的标签。

7029 错误 Fallthrough c as e in s witc h. s witc h 语句中的 Fallthrough 情况。

7030 错误 N ot all c ode paths return a value. 并非所有代码路径都返回值。

Binding element '{0 }' implic itly has an


7031 错误
'{1 }' type.

P roperty '{0 }' implic itly has type 'any',


7032 错误 bec aus e its s et ac c es s or lac ks a
parameter type annotation.

P roperty '{0 }' implic itly has type 'any',


7033 错误 bec aus e its get ac c es s or lac ks a return
type annotation.

Variable '{0 }' implic itly has type '{1 }'


7034 错误 in s ome loc ations where its type c annot
be determined.

8000 错误 You c annot rename this element. 无法重命名此元素。

You c annot rename elements that are


8001 错误 defined in the s tandard TypeSc ript 不能重命名标准 TypeSc ript 库中定义的元素。
library.

'import ... =' c an only be us ed in a .ts


8002 错误 " import ... =" 只能在 .ts 文件中使用。
file.

8003 错误 'export=' c an only be us ed in a .ts file. " export=" 只能在 .ts 文件中使用。

'type parameter dec larations ' c an only


8004 错误 " type parameter dec larations " 只能在 .ts 文件中使用。
be us ed in a .ts file.

'implements c laus es ' c an only be us ed


8005 错误 " implements c laus es " 只能在 .ts 文件中使用。
in a .ts file.

'interfac e dec larations ' c an only be


8006 错误 " interfac e dec larations " 只能在 .ts 文件中使用。
us ed in a .ts file.

'module dec larations ' c an only be us ed


8007 错误 " module dec larations " 只能在 .ts 文件中使用。
in a .ts file.

'type alias es ' c an only be us ed in a .ts


8008 错误 " type alias es " 只能在 .ts 文件中使用。
file.

8009 错误 '{0 }' c an only be us ed in a .ts file. “{0 }”只能在 .ts 文件中使用。

8010 错误 'types ' c an only be us ed in a .ts file. " types " 只能在 .ts 文件中使用。

'type arguments ' c an only be us ed in a


8011 错误 " type arguments " 只能在 .ts 文件中使用。
.ts file.

'parameter modifiers ' c an only be us ed


8012 错误 " parameter modifiers " 只能在 .ts 文件中使用。
in a .ts file.

'enum dec larations ' c an only be us ed in


8015 错误 " enum dec larations " 只能在 .ts 文件中使用。
a .ts file.

'type as s ertion expres s ions ' c an only


8016 错误 " type as s ertion expres s ions " 只能在 .ts 文件中使用。
be us ed in a .ts file.

O nly identifiers /qualified- names with


类 " extends " 子句当前只支持具有可选类型参数的标识符/限
9002 错误 optional type arguments are c urrently
定名称。
s upported in a c las s 'extends ' c laus es .

'c las s ' expres s ions are not c urrently


9003 错误 当前不支持 " c las s " 表达式。
s upported.

9004 错误 L anguage s ervic e is dis abled.

J SX attributes mus t only be as s igned a


17000 错误 只能为 J SX 属性分配非空“表达式”。
non- empty 'expres s ion'.

J SX elements c annot have multiple


17001 错误 J SX 元素不能具有多个名称相同的特性。
attributes with the s ame name.

E xpec ted c orres ponding J SX c los ing


17002 错误 “{0 }”预期的相应 J SX 结束标记。
tag for '{0 }'.

17003 错误 J SX attribute expec ted. 需要 J SX 属性。

C annot us e J SX unles s the '- - js x' flag


17004 错误 无法使用 J SX,除非提供了 " - - js x" 标志。
is provided.

A c ons truc tor c annot c ontain a 's uper'


17005 错误 当构造函数的类扩展 " null" 时,它不能包含 " s uper" 调用。
c all when its c las s extends 'null'

A n unary expres s ion with the '{0 }'


operator is not allowed in the left- hand
乘方表达式的左侧不允许存在具有“{0 }”运算符的一元表达式。
17006 错误 s ide of an exponentiation expres s ion.
请考虑用括号将表达式括起。
C ons ider enc los ing the expres s ion in
parenthes es .

A type as s ertion expres s ion is not


allowed in the left- hand s ide of an
乘方表达式的左侧不允许出现类型断言表达式。请考虑用括号将
17007 错误 exponentiation expres s ion. C ons ider
表达式括起。
enc los ing the expres s ion in
parenthes es .

J SX element '{0 }' has no c orres ponding J SX element '{0 }' has no c orres ponding c los ing
17008 错误
c los ing tag. tag.

's uper' mus t be c alled before ac c es s ing


's uper' mus t be c alled before ac c es s ing 'this ' in
17009 错误 'this ' in the c ons truc tor of a derived
the c ons truc tor of a derived c las s .
c las s .

17010 错误 U nknown type ac quis ition option '{0 }'. U nknown typing option '{0 }'.

's uper' mus t be c alled before ac c es s ing


17011 错误 a property of 's uper' in the c ons truc tor
of a derived c las s .

Too many J avaSc ript files in the projec t. C ons ider


s pec ifying the 'exc lude' s etting in projec t
'{0 }' is not a valid meta- property for c onfiguration to limit inc luded s ourc e folders . T he
17012 错误
keyword '{1 }'. D id you mean '{0 }'? likely folder to exc lude is '{0 }'. To dis able the
projec t s ize limit, s et the 'dis ableSizeL imit'
c ompiler option to 'true'.

M eta- property '{0 }' is only allowed in


17013 错误 the body of a func tion dec laration,
func tion expres s ion, or c ons truc tor.

C irc ularity detec ted while res olving


18000 错误
c onfiguration: {0 }

A path in an 'extends ' option mus t be


18001 错误
relative or rooted, but '{0 }' is not.

T he 'files ' lis t in c onfig file '{0 }' is


18002 错误
empty.

N o inputs were found in c onfig file '{0 }'.


18003 错误 Spec ified 'inc lude' paths were '{1 }' and
'exc lude' paths were '{2 }'.

90001 信息 A dd mis s ing 's uper()' c all.

M ake 's uper()' c all the firs t s tatement


90002 信息
in the c ons truc tor.

90003 信息 C hange 'extends ' to 'implements '.

90004 信息 Remove unus ed identifiers .

90006 信息 I mplement interfac e '{0 }'.

90007 信息 I mplement inherited abs trac t c las s .

A dding a ts c onfig.js on file will help


organize projec ts that c ontain both
90009 错误
TypeSc ript and J avaSc ript files . L earn
more at https ://aka.ms /ts c onfig

Type '{0 }' is not as s ignable to type


90010 错误 '{1 }'. Two different types with this name
exis t, but they are unrelated.

90013 信息 I mport {0 } from {1 }

90014 信息 C hange {0 } to {1 }

A dd {0 } to exis ting import dec laration


90015 信息
from {1 }

O c tal literal types mus t us e E S2 0 1 5


8017 错误
s yntax. U s e the s yntax '{0 }'.

O c tal literals are not allowed in enums


8018 错误 members initializer. U s e the s yntax
'{0 }'.

制作  于北京 微博 @TypeScript中文网 (http://weibo.com/tslangcn)  Star

©2012-2016 Microsoft

TypeScript中文网 | 推动TypeScript语言在中国的发展

TypeScript中文网基本会保持和TypeScript官网 (http://www.typescriptlang.org/)一致

© 京ICP备15040086号-2

You might also like