当前位置:网站首页>Use typescript compiler parameter 'skiplibcheck' - usage of the typescript compiler argument'skiplibcheck'
Use typescript compiler parameter 'skiplibcheck' - usage of the typescript compiler argument'skiplibcheck'
2022-06-29 04:48:00 【Bustling city 】
problem :
I've been researching around for a further explanation into the skipLibCheck TypeScript compiler argument to determine the safety of having this set to true . I've been studying skipLibCheck TypeScript Further explanation of compiler parameters , To make sure it is set to true The security of .The most in-depth explanation I found is the following: The most profound explanation I have found is as follows :
New --skipLibCheck TypeScript 2.0 adds a new --skipLibCheck compiler option that causes type checking of declaration files (files with extension .d.ts) to be skipped. new --skipLibCheck TypeScript 2.0 Added a new --skipLibCheck Compiler Options , This option causes the declaration file to be skipped ( extension .d.ts The file of ) Type check of .When a program includes large declaration files, the compiler spends a lot of time type checking declarations that are already known to not contain errors, and compile times may be significantly shortened by skipping declaration file type checks. When a program contains a large declaration file , The compiler spends a lot of time type checking declarations that are known to contain no errors , And by skipping the declaration file type check, compilation time can be significantly reduced .
Since declarations in one file can affect type checking in other files, some errors may not be detected when --skipLibCheck is specified. Because the declaration in one file will affect the type checking in other files , Therefore, in the specified --skipLibCheck Some errors may not be detected when .For example, if a non-declaration file augments a type declared in a declaration file, errors may result that are only reported when the declaration file is checked. for example , If the undeclared file extends the type declared in the declaration file , May result in errors reported only when checking the declaration file .However, in practice such situations are rare. However , In practice , This is a rare case .
I understand that you obviously get a performance benefit from the compiler not having to type check files which are considered not to contain errors but I've seen this flag being used to get around errors being emitted from the compiler in relation to the declaration files having problems. I know you can obviously get a performance advantage from the compiler , Instead of typing a check file that is considered to contain no errors , But I have seen that this flag is used to solve the problem of errors related to the declaration file issued by the compiler .
Surely using this flag to get around this decreases the integrity of the typing of your application? Using this flag to solve this problem will certainly reduce the integrity of the application type ?
Solution :
Reference resources : https://stackoom.com/en/question/3XUgN边栏推荐
- Experience sharing of system analysts in preparing for exams: phased and focused
- Airflow2.2.3 + efficiency + MySQL 8 build a robust distributed scheduling cluster
- 《软件体系结构》期末复习总结
- How to create robots Txt file?
- 【代码随想录-动态规划】最长公共子序列
- C语言用 printf 打印 《爱心》《火星撞地球》等,不断更新
- LabVIEW显示Unicode字符
- 1017 a divided by B
- BERT和ViT简介
- 1019 digital black hole
猜你喜欢

Open a new ecological posture | use WordPress remote attachment to store to Cos

Mediator pattern

Observer pattern
![[IOT] description of renaming the official account](/img/54/43189f34b81a7441cd46d5c2066970.png)
[IOT] description of renaming the official account "Jianyi commerce" to "product renweipeng"

【HackTheBox】dancing(SMB)

Apifox: it is not only an API debugging tool, but also a collaboration artifact of the development team

1018 hammer scissors cloth

仿真與燒錄程序有哪幾種方式?(包含常用工具與使用方式)

Technical specifications of Tektronix tds3054b oscilloscope

What are the MySQL database constraint types
随机推荐
轻松入门自然语言处理系列 专题7 基于FastText的文本分类
What are the circular statements of MySQL
It is said on the Internet that a student from Guangdong has been admitted to Peking University for three times and earned a total of 2million yuan in three years
Complete collection of necessary documents for project management: you can't write these 14 project documents yet?
Apifox: it is not only an API debugging tool, but also a collaboration artifact of the development team
【代码随想录-哈希表】T15、三数之和-双指针+排序
网络设备设置/取消console口登陆单独密码
The last week! Summary of pre competition preparation for digital model American Games
Lua protobuff Emmy Lua wheel
How to write MySQL scheduled backup script in Linux
Research Report on the overall scale, major manufacturers, major regions, products and applications of high temperature film capacitors in the global market in 2022
LabVIEW显示Unicode字符
Visitor pattern
[hackthebox] dancing (SMB)
Sword finger offer II 040 Largest rectangle in matrix
[code Capriccio - dynamic planning] longest common subsequence
如何创建 robots.txt 文件?
From zero to one, I will teach you to build a "search by text and map" search service (I)
How to quickly change the database name in MySQL
February 14 institutional dragon and tiger list and operation of well-known hot money