0
最近,当我用Rxjs 5,我下载Rxjs使用NPM安装[email protected],从下node_modules下载的代码,我发现Observable.d.ts在Rxjs文件夹中,我看到了它的声明构造象下面这样:此关键字的功能参数
*
* @constructor
* @param {Function} subscribe the function that is called when the Observable is
* initially subscribed to. This function is given a Subscriber, to which new values
* can be `next`ed, or an `error` method can be called to raise an error, or
* `complete` can be called to notify of a successful completion.
*/
constructor(subscribe?: <R>(this: Observable<T>, subscriber: Subscriber<R>) => TeardownLogic);
我的问题是:这是什么关键字的订阅?:函数类型声明的使用(这一点:观察的,...),是否有打字原稿这个关键字的使用像一些文档这里?谢谢。
谢谢你,帮我找到文档。 – IcyBrk