I am trying to learn Typescript and created a basic typescript structure after this tutorial.
I need to add typing to the project now. So I looked around and found typings . Then I added JQuery, Lodashand D3with the help of typing. So my project structure is as follows:
βββ dist
β βββ chart.js
β βββ greet.js
β βββ main.js
βββ gulpfile.js
βββ package.json
βββ src
β βββ ts
β βββ chart.ts
β βββ greet.ts
β βββ main.ts
βββ tsconfig.json
βββ typings
β βββ globals
β β βββ jquery
β β βββ index.d.ts
β β βββ typings.json
β βββ index.d.ts
β βββ modules
β βββ d3
β β βββ index.d.ts
β β βββ typings.json
β βββ lodash
β βββ index.d.ts
β βββ typings.json
βββ typings.json
This is my file tsconfig.json:
{
"files": [
"src/ts/*.ts"
],
"compilerOptions": {
"noImplicitAny": true,
"target": "es5"
}
}
My question is: how to add the files *.d.tsthat I have in the directory typingsin my main.tsfile and start using jQuery $or D3 D3?
I noticed a index.d.tsfile in typingsthat looks like this:
, - main.ts tsconfig.json ( , .d.ts). ? .