This time I will bring you the analysis of the method of obtaining the TypeScript declaration file .d.ts (with code) and the precautions for obtaining the TypeScript declaration file .d.ts. The following is a practical case. Get up and take a look.
1. TypeScript declaration file is like C/C using .h file. When using TypeScript to call otherclass libraries that have been written, IntelliSense intelligent prompts can be provided.
2. Use the npm command to obtain the .d.ts fileinstall -save @types/jquery<a href="http://www.php.cn/wiki/1495.html" target="_blank"> -g </a>
InstallationThe steps are as follows
1. Download windows installation fromhttps://nodejs.org/en/ Package
2. Install Node, js3. After the installation is completed, open the cmd command line tool of windows and enternpm -v
npm config set prefix "d:\nodejs\node_global"
How to use slots in Vue to distribute parent components
How to operate vue from the list through id Page jump details page
The above is the detailed content of Get TypeScript declaration file .d.ts method analysis (with code). For more information, please follow other related articles on the PHP Chinese website!