'Including / importing .d.ts file exports
Simple question but couldn't find the answer:
I have one file example.d.ts and one file example.ts, and I have a export type myType = {a: string} in the .d.ts.
Elsewhere in the project, if I need to import myType, VSCode can find this automatically adds an import statement, but to './example' only and cannot find the exported type in '.d.ts'. Changing the path to './example.d' works.
How can I get this to work properly?
Thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
