rxjs用管道完成操作符

时间:2019-08-12 15:55:52

标签: angular8

下面的代码删除警告消息的正确语法是什么?

'MonoTypeOperatorFunction'类型的参数不能分配给'OperatorFunction'类型的参数。

尝试了2,3种情况,但无法摆脱警告消息

return this._http.get<UserViewModel>(url, {withCredentials: true}).do((result: any) => {
            if (result && result.length > 0) {
                // set readonly flag - if current job is locked
                this._isUserReadOnly = result.isReadOnly;
            }
        }).pipe(finalize(() => {
            this.blockUI.stop();
        }));

0 个答案:

没有答案