TypeScript: Specify a directory to look for module type definitions
问题 Heyho, I want to use some javascript libraries in my typescript code for which there are no typings in npm. So I wrote the typings myself and put them in a definitions directory in my source tree. However, I could not get typescript to look in that directory for those modules. My directory structure looks like this: +-node_modules | | | +-moduleA | | | +-moduleB | +-src | | | +-definitions | | | | | +-moduleA.d.ts | | | | | +-moduleB.d.ts | | | +-ts | | | + ... all typescript code ... | +