How to import external type into global .d.ts file [duplicate]
With TypeScript 3.3+ (and maybe since the 2.4 because it’s the version that added support for dynamic imports), you have better ways to solve this isssue, using either: interface Test { date: import(‘moment’).Moment; } or type Moment = import(‘moment’).Moment; interface Test { date: Moment; } with no need to export any interfaces 😉