且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何禁用/抑制TypeScript库中的错误?

更新时间:2023-12-05 12:15:34

此问题不是的重复项定义文件,答案 https://***.com/a/39917362/1017211 确实可以解决我的问题.

While this question is not a duplicate of Allow implicit any only for definition files the answer https://***.com/a/39917362/1017211 from over there does solve my issue.

编辑tsconfig.json:

{
    "compilerOptions": {
        "skipLibCheck": true,
        ...
    },
    ...
}