【问题标题】:How to run tests of DefinitelyTyped repository如何运行DefinitelyTyped存储库的测试
【发布时间】:2016-03-07 07:13:11
【问题描述】:

从主分支中提取最新的commit。 跑下面命令参考官方contribution guide

npm install
tsc --noImplicitAny .\mongoose\mongoose-tests.ts

但这会产生许多错误,例如

error TS1005: ';' expected.
error TS1006: Identifier expected; 'this' is a keyword.
error TS1008: Unexpected token; 'module, class, interface, enum, import or statement' expected.
error TS1003: Identifier expected.
error TS1005: '=>' expected.

在运行 youtube 包定义测试时也会显示类似的错误。 我做错了什么?

【问题讨论】:

    标签: node.js typescript npm-install definitelytyped


    【解决方案1】:

    您的typescript 版本很可能不是最新的稳定版本

    【讨论】:

    猜你喜欢
    • 2023-03-26
    • 2014-06-19
    • 2014-10-07
    • 1970-01-01
    • 2019-01-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-11
    相关资源
    最近更新 更多