Typescript no type definition found
问题 I made a typescript module that I published on npm, however I can't get intellisens to work. The file structure is as such dist index.js + others src index.ts + others package.json tsconfig.json src contains the .ts files, and dist the .js , .d.ts , .js.map . If I do this: import { X } from 'my-package'; It will work, no error, but no intellisens, and the message is the type definition is not found . However if I do this: import { X } from 'my-package/dist'; I do get intellisens. In package