I found some weird typescript syntax in looking at flux, that isn't making any sense. For example;
class Action {
private _source: Action.Source
constructor( source: Action.Source ) {
this._source = source
}
get source() {
return this._source
}
}
module Action {
export enum Source {
View,
Server
}
}
export = Action
What exactly does export = Action do here? Is it being overloaded to export the module and the class? Mixing them somehow? I'm not understanding the semantics here..