为什么不严格键入有角度的EventEmitter订阅方法参数?
subscribe(generatorOrNext?: any, error?: any, complete?: any): Subscription {
...
}
而不是类似的
subscribe(generator: DefForGenerator): Subscription;
subscribe(next?: (value: T) => void, error?: (error: any) => void, complete?: () => void): Subscription;
subscribe(generatorOrNext?: any, error?: any, complete?: any): Subscription {
...
}