Lately, I've been dedicated to finding a solution for incorporating Angular types directly into my .d.ts files without the need to import them elsewhere. Initially, I attempted to install @types/angular, only to realize it was meant for AngularJS, which is not what I needed. For example, if I wanted to define a type like this:
interface Foo {
bar: EventEmitter<string>;
}
I would have to import the EventEmitter and then export Foo, causing issues with the .d.ts file. This in turn requires me to import Foo in every file where I want to use it. What I truly desire is something along these lines:
interface Foo {
bar: angular.EventEmitter<string>;
}
If anyone can offer some guidance on this matter, it would be immensely appreciated.