本文整理匯總了TypeScript中rx.Observable.empty方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Observable.empty方法的具體用法?TypeScript Observable.empty怎麽用?TypeScript Observable.empty使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類rx.Observable
的用法示例。
在下文中一共展示了Observable.empty方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: it
it("should pass the data to the viewmodel", () => {
let obs = Observable.empty();
subject.extend(viewmodel.object, null, {
model: obs,
refresh: () => null
});
viewmodel.verify(v => v.observe(It.isValue(obs)), Times.once());
});
示例2:
return all.concat(output.catch(x => Rx.Observable.empty()));
示例3: ViewModelContext
let viewmodel = subject.create(new ViewModelContext("Admin", "Bar"), BarViewModel, () => Observable.empty());
示例4: it
it("should not receive it", () => {
let viewmodel = Mock.ofType<ControllableModel>();
subject.extend(viewmodel.object, null, Observable.empty());
viewmodel.verify(v => v.onControllerReceived(It.isAny()), Times.never());
});