getSystem(): Observable<DotWorkflow> { const systemWorkflow = mockWorkflows.filter((workflow: DotWorkflow) => workflow.system); return observableOf(_.cloneDeep(systemWorkflow[0])); }
it('should support a scheduler', () => { const o = of('a', 'b', 'c').pipe(timeout(10, asyncScheduler)); // $ExpectType Observable<string> const p = of('a', 'b', 'c').pipe(timeout(new Date(), asyncScheduler)); // $ExpectType Observable<string> });
it('should enforce types of scheduler', () => { const o = of('a', 'b', 'c').pipe(timeout(5, 'foo')); // $ExpectError });
concatMap(() => options.deleteOutputPath ? this._deleteOutputDir(root, normalize(options.outputPath), this.context.host) : of(null)),
it('should enforce types', () => { const o = of('a', 'b', 'c').pipe(repeat('aa')); // $ExpectError });
it('should support an undefined predicate with a T default', () => { const o = of('foo').pipe(last(undefined, 'bar')); // $ExpectType Observable<string> });
factory: () => (fem: Tree) => { inner = fem; return observableOf(empty()); },
mergeMap((x: string) => of(x))
enumerate() { return observableOf(queryResult); }
// getHeroes(): Hero[]{ // return HEROES // } getHeroes(): Observable<Hero[]> { // return of(HEROES); this.messageService.add('HeroService: xxxx'); return of(HEROES) }