TypeScript报错信息表(备注)

39 篇文章 17 订阅 ¥19.90 ¥99.00
13 篇文章 4 订阅 ¥29.90 ¥99.00
74 篇文章 8 订阅
code 类型 英文描述 中文描述
1002 错误 Unterminated string literal. 未终止的字符串文本。
1003 错误 Identifier expected. 应为标识符。
1005 错误 '{0}' expected.  应为“{0}”。
1006 错误 A file cannot have a reference to itself.  文件不能引用自身。
1009 错误 Trailing comma not allowed.  不允许使用尾随逗号。
1010 错误 '*/' expected. 应为 "*/"。
1012 错误 Unexpected token.  意外的标记。
1014 错误 A rest parameter must be last in a parameter list. rest 参数必须是参数列表中的最后一个参数。
1015 错误 Parameter cannot have question mark and initializer. 参数不能包含问号和初始化表达式。
1016 错误 A required parameter cannot follow an optional parameter.  必选参数不能位于可选参数后。
1017 错误 An index signature cannot have a rest parameter. 索引签名不能包含 rest 参数。
1018 错误 An index signature parameter cannot have an accessibility modifier.  索引签名参数不能具有可访问性修饰符。
1019 错误 An index signature parameter cannot have a question mark.  索引签名参数不能包含问号。
1020 错误 An index signature parameter cannot have an initializer. 索引签名参数不能具有初始化表达式。
1021 错误 An index signature must have a type annotation.  索引签名必须具有类型批注。
1022 错误 An 
  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

攻城狮Lee丶

码字不易,客观打个赏吧

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值