Professional Documents
Culture Documents
1 现已发布。现在下载 (/#download-links)我们最新版本!
文档目录
错误信息列表
1084 错误 I nvalid 'referenc e' direc tive s yntax. " referenc e" 指令语法无效。
1130 错误 'c as e' or 'default' expec ted. 应为 " c as e" 或 " default" 。
1155 错误 'c ons t' dec larations mus t be initialized 必须初始化 " c ons t" 声明
1172 错误 'extends ' c laus e already s een. 已看到 " extends " 子句。
1175 错误 'implements ' c laus e already s een. 已看到 " implements " 子句。
1179 错误 U nexpec ted token. '{' expec ted. 意外标记。应为 " {" 。
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.
2303 错误 C irc ular definition of import alias '{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 }'. 是。
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 }'.
P roperty '{0 }' is protec ted in type '{1 }' 属性“{0 }”在类型“{1 }”中受保护,但在类型“{2 }”中为公共属
2444 错误
but public in type '{2 }'. 性。
2460 错误 Type '{0 }' has no property '{1 }'. 类型“{0 }”不具有属性“{1 }”。
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' enum member initializer was " c ons t" 枚举成员初始化表达式的求值结果为不允许使用的值
2478 错误
evaluated to dis allowed value 'N aN '. " N aN " 。
2489 错误 A n iterator mus t have a 'next()' method. 迭代器必须具有 " next()" 方法。
M odule '{0 }' us es 'export =' and c annot 模块“{0 }”使用 " export =" 且无法与 " export * " 一起使
2498 错误
be us ed with 'export * '. 用。
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 .
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.
'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.
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 }'?
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.
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.
E xtends c laus e of exported c las s '{0 }' 导出的类“{0 }”的 extends 子句具有或正在使用专用名
4020 错误
has or is us ing private name '{1 }'. 称“{1 }”。
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.
6002 信息 G enerates c orres ponding '.d.ts ' file. 生成相应的 " .d.ts " 文件。
6024 信息 options 选项
6025 信息 file 文件
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
6043 信息 G enerates c orres ponding '.map' file. 生成相应的 " .map" 文件。
L oc ale mus t be of the form or - . For 区域设置必须采用 <语言> 或 <语言>- <区域> 形式。例
6048 错误
example '{0 }' or '{1 }'. 如“{0 }”或“{1 }”。
6061 信息 N E WL I N E 换行符
'pac kage.js on' has '{0 }' field '{1 }' that
6101 信息
referenc es '{2 }'.
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.
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.
8003 错误 'export=' c an only be us ed in a .ts file. " export=" 只能在 .ts 文件中使用。
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 文件中使用。
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.
17010 错误 U nknown type ac quis ition option '{0 }'. U nknown typing option '{0 }'.
90014 信息 C hange {0 } to {1 }
©2012-2016 Microsoft
TypeScript中文网 | 推动TypeScript语言在中国的发展
TypeScript中文网基本会保持和TypeScript官网 (http://www.typescriptlang.org/)一致
© 京ICP备15040086号-2