1.利用npm安装tsd
>npm install -g tsd
2.以jquery为例,利用tsd安装jquery.d.ts
>tsd install jquery --save
3.用VSCode打开.ts文件,添加tsd文件引用
/// <reference path="jquery.d.ts" />
1.利用npm安装tsd
>npm install -g tsd
2.以jquery为例,利用tsd安装jquery.d.ts
>tsd install jquery --save
3.用VSCode打开.ts文件,添加tsd文件引用
/// <reference path="jquery.d.ts" />