While browsing a declaration file on dt I came accross the following syntax:
import github = Strategy; // <- what is imported from where here?
declare class Strategy extends oauth2.Strategy {
...
}
declare namespace Strategy {
export import Strategy = github; // <- I've not seen this syntax before?
interface _StrategyOptionsBase {
...
}
}
export = Strategy;
I'm having trouble understanding the import and export syntax here. I roughly understand typescripts export= custom syntax. However, I don't understand why and what we're exporting from the namespace. Nor do I fully understand what we're importing with import github ....
I'd love some help.