tsconfig.json typeroots custom path not picked up
问题 I have some custom .d.ts files and I want tsc to pick up these files when compiling. In order to get this done I modify the tsconfig.file to include the following "typeRoots": [ "../node_modules/@types", "./app/modules" ] ./app/modules is where my custom .d.ts file resides. Inside the ./app/modules folder I have the following file myModule.d.ts export declare module myModule { function Login(); function Logout(); } Now inside my other typescript file I have the following import import {