I am currently exploring Typescript and typings, but I'm still trying to understand how to specify the location of typings in Typescript efficiently (or more precisely... how to do so without unnecessary complexities).
There seems to be various files involved:
- typings.json (seemingly where typings location is stored)
- tsconfig.json's filesGlob (which apparently includes all .ts files + typings)
- typings/main.d.ts ("root of typings", where we define Is this file essential when typings are already included in filesGlob? Also, what distinguishes adding the reference paths here as opposed to individual .ts files throughout the application**?
- When using SystemJS and CommonJS' import, can it be understood that every time the import function is utilized, a module is being imported and not just its typings?
What is the significance of each of these files and which ones are mandatory? (specifically considering the queries and remarks associated with each file)