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