I don't understand how custom type definitions files are included in typescript applications. For example, this application has src/custom-typings.d.ts
file that contains custom type definitions. How this file is included?
I tried to rename this file and it is included anyway. The file extension can be *.ts
(not only *.d.ts
). Does webpack search type definitions in every *.ts
file in the project? If so, then how to change this behavior? How to tell webpack to search type definitions in a specific file?