所有这些都在工作,但我不知道哪个更好。
const myObservable1 = Observable.create(function (observer:string) {...}
const myObservable2 = Observable.create(function subscribe(observer:string) {...}
const myObservable3 = Observable.create(function (observer:Observer<string>) {...}