Skip to content

Commit b032d6d

Browse files
committed
chore: migrate all 'rxjs/operators' imports to 'rxjs'
1 parent 9f3ce07 commit b032d6d

File tree

246 files changed

+339
-504
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+339
-504
lines changed

docs_app/src/app/app.component.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { MatProgressBar } from '@angular/material/progress-bar';
77
import { MatSidenav } from '@angular/material/sidenav';
88
import { By } from '@angular/platform-browser';
99

10-
import { of, timer } from 'rxjs';
11-
import { first, mapTo } from 'rxjs/operators';
10+
import { of, timer, first, mapTo } from 'rxjs';
1211

1312
import { AppComponent } from './app.component';
1413
import { AppModule } from './app.module';

docs_app/src/app/app.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import { SearchResults } from 'app/search/interfaces';
1212
import { SearchService } from 'app/search/search.service';
1313
import { TocService } from 'app/shared/toc.service';
1414

15-
import { BehaviorSubject, combineLatest, Observable } from 'rxjs';
16-
import { first, map } from 'rxjs/operators';
15+
import { BehaviorSubject, combineLatest, Observable, first, map } from 'rxjs';
1716
import { Inject } from '@angular/core';
1817
import { DOCUMENT } from '@angular/common';
1918

docs_app/src/app/custom-elements/announcement-bar/announcement-bar.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, OnInit } from '@angular/core';
22
import { HttpClient } from '@angular/common/http';
3-
import { catchError, map } from 'rxjs/operators';
3+
import { catchError, map } from 'rxjs';
44
import { Logger } from 'app/shared/logger.service';
55
import { CONTENT_URL_PREFIX } from 'app/documents/document.service';
66
const announcementsPath = CONTENT_URL_PREFIX + 'announcements.json';

docs_app/src/app/custom-elements/api/api-list.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
1010

11-
import { combineLatest, Observable, ReplaySubject } from 'rxjs';
11+
import { combineLatest, Observable, ReplaySubject, map } from 'rxjs';
1212

1313
import { LocationService } from 'app/shared/location.service';
1414
import { ApiSection, ApiService } from './api.service';
1515

1616
import { Option } from 'app/shared/select/select.component';
17-
import { map } from 'rxjs/operators';
17+
1818

1919
class SearchCriteria {
2020
query? = '';

docs_app/src/app/custom-elements/api/api.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Injectable, OnDestroy } from '@angular/core';
22
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
33

4-
import { ReplaySubject, Subject } from 'rxjs';
5-
import { takeUntil, tap } from 'rxjs/operators';
4+
import { ReplaySubject, Subject, takeUntil, tap } from 'rxjs';
65

76
import { Logger } from 'app/shared/logger.service';
87
import { DOC_CONTENT_URL_PREFIX } from 'app/documents/document.service';

docs_app/src/app/custom-elements/code/code.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Logger } from 'app/shared/logger.service';
33
import { PrettyPrinter } from './pretty-printer.service';
44
import { CopierService } from 'app/shared/copier.service';
55
import { MatSnackBar } from '@angular/material/snack-bar';
6-
import { tap } from 'rxjs/operators';
6+
import { tap } from 'rxjs';
77
import { StackblitzService } from 'app/shared/stackblitz.service';
88
import version from '../../../../tools/stackblitz/rxjs.version';
99

docs_app/src/app/custom-elements/code/pretty-printer.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Injectable } from '@angular/core';
22

3-
import { from as fromPromise, Observable } from 'rxjs';
4-
import { first, map, share } from 'rxjs/operators';
3+
import { from as fromPromise, Observable, first, map, share } from 'rxjs';
54

65
import { Logger } from 'app/shared/logger.service';
76

docs_app/src/app/custom-elements/contributor/contributor.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Injectable } from '@angular/core';
22
import { HttpClient } from '@angular/common/http';
33

4-
import { ConnectableObservable, Observable } from 'rxjs';
5-
import { map, publishLast } from 'rxjs/operators';
4+
import { ConnectableObservable, Observable, map, publishLast } from 'rxjs';
65

76
import { Contributor, ContributorGroup } from './contributors.model';
87

docs_app/src/app/custom-elements/operator-decision-tree/operator-decision-tree.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Injectable } from '@angular/core';
2-
import { BehaviorSubject, combineLatest, Observable, of } from 'rxjs';
3-
import { filter, map, mapTo, shareReplay, catchError } from 'rxjs/operators';
2+
import { BehaviorSubject, combineLatest, Observable, of, filter, map, mapTo, shareReplay, catchError } from 'rxjs';
43
import { OperatorDecisionTree, OperatorTreeNode, State } from './interfaces';
54
import { OperatorDecisionTreeDataService } from './operator-decision-tree-data.service';
65
import { isInitialDecision, nodeHasOptions, treeIsErrorFree } from './utils';

docs_app/src/app/custom-elements/resource/resource.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Injectable } from '@angular/core';
22
import { HttpClient } from '@angular/common/http';
33

4-
import { ConnectableObservable, Observable } from 'rxjs';
5-
import { map, publishLast } from 'rxjs/operators';
4+
import { ConnectableObservable, Observable, map, publishLast } from 'rxjs';
65

76
import { Category, Resource, SubCategory } from './resource.model';
87
import { CONTENT_URL_PREFIX } from 'app/documents/document.service';

docs_app/src/app/custom-elements/search/file-not-found-search.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Component, OnInit } from '@angular/core';
2-
import { Observable } from 'rxjs';
3-
import { switchMap } from 'rxjs/operators';
2+
import { Observable, switchMap } from 'rxjs';
43
import { LocationService } from 'app/shared/location.service';
54
import { SearchResults } from 'app/search/interfaces';
65
import { SearchService } from 'app/search/search.service';

docs_app/src/app/custom-elements/toc/toc.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { AfterViewInit, Component, ElementRef, OnDestroy, OnInit, QueryList, ViewChildren } from '@angular/core';
2-
import { asapScheduler as asap, combineLatest, Subject } from 'rxjs';
3-
import { startWith, subscribeOn, takeUntil } from 'rxjs/operators';
2+
import { asapScheduler as asap, combineLatest, Subject, startWith, subscribeOn, takeUntil } from 'rxjs';
43

54
import { ScrollService } from 'app/shared/scroll.service';
65
import { TocItem, TocService } from 'app/shared/toc.service';

docs_app/src/app/documents/document.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Injectable } from '@angular/core';
22
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
33

4-
import { AsyncSubject, Observable, of } from 'rxjs';
5-
import { catchError, switchMap, tap } from 'rxjs/operators';
4+
import { AsyncSubject, Observable, of, catchError, switchMap, tap } from 'rxjs';
65

76
import { DocumentContents } from './document-contents';
87
export { DocumentContents } from './document-contents';

docs_app/src/app/layout/doc-viewer/doc-viewer.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Component, ElementRef, EventEmitter, Input, OnDestroy, Output } from '@angular/core';
22
import { Title, Meta } from '@angular/platform-browser';
33

4-
import { asapScheduler, Observable, of, timer } from 'rxjs';
5-
import { catchError, observeOn, switchMap, takeUntil, tap } from 'rxjs/operators';
4+
import { asapScheduler, Observable, of, timer, catchError, observeOn, switchMap, takeUntil, tap } from 'rxjs';
65

76
import { DocumentContents, FILE_NOT_FOUND_ID, FETCHING_ERROR_ID } from 'app/documents/document.service';
87
import { Logger } from 'app/shared/logger.service';

docs_app/src/app/navigation/navigation.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Injectable } from '@angular/core';
22
import { HttpClient } from '@angular/common/http';
33

4-
import { combineLatest, ConnectableObservable, Observable } from 'rxjs';
5-
import { map, publishLast, publishReplay } from 'rxjs/operators';
4+
import { combineLatest, ConnectableObservable, Observable, map, publishLast, publishReplay } from 'rxjs';
65

76
import { LocationService } from 'app/shared/location.service';
87
import { CONTENT_URL_PREFIX } from 'app/documents/document.service';

docs_app/src/app/search/search-box/search-box.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Component, OnInit, ViewChild, ElementRef, EventEmitter, Output } from '@angular/core';
22
import { LocationService } from 'app/shared/location.service';
3-
import { Subject } from 'rxjs';
4-
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
3+
import { Subject, debounceTime, distinctUntilChanged } from 'rxjs';
54

65
/**
76
* This component provides a text box to type a search query that will be sent to the SearchService.

docs_app/src/app/search/search.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ can be found in the LICENSE file at http://angular.io/license
55
*/
66

77
import { NgZone, Injectable } from '@angular/core';
8-
import { ConnectableObservable, Observable, race, ReplaySubject, timer } from 'rxjs';
9-
import { concatMap, first, publishReplay } from 'rxjs/operators';
8+
import { ConnectableObservable, Observable, race, ReplaySubject, timer, concatMap, first, publishReplay } from 'rxjs';
109
import { WebWorkerClient } from 'app/shared/web-worker';
1110
import { SearchResults } from 'app/search/interfaces';
1211

docs_app/src/app/shared/location.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Injectable } from '@angular/core';
22
import { Location, PlatformLocation } from '@angular/common';
33

4-
import { ReplaySubject } from 'rxjs';
5-
import { map, tap } from 'rxjs/operators';
4+
import { ReplaySubject, map, tap } from 'rxjs';
65

76
import { GaService } from 'app/shared/ga.service';
87
import { SwUpdatesService } from 'app/sw-updates/sw-updates.service';

docs_app/src/app/shared/scroll-spy.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Inject, Injectable } from '@angular/core';
22
import { DOCUMENT } from '@angular/common';
3-
import { fromEvent, Observable, ReplaySubject, Subject } from 'rxjs';
4-
import { auditTime, distinctUntilChanged, takeUntil } from 'rxjs/operators';
3+
import { fromEvent, Observable, ReplaySubject, Subject, auditTime, distinctUntilChanged, takeUntil } from 'rxjs';
54

65
import { ScrollService } from 'app/shared/scroll.service';
76

docs_app/src/app/shared/scroll.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { DOCUMENT, Location, PlatformLocation, PopStateEvent, ViewportScroller } from '@angular/common';
22
import { Injectable, Inject } from '@angular/core';
3-
import { fromEvent } from 'rxjs';
4-
import { debounceTime } from 'rxjs/operators';
3+
import { fromEvent, debounceTime } from 'rxjs';
54

65
type ScrollPosition = [number, number];
76
interface ScrollPositionPopStateEvent extends PopStateEvent {

docs_app/src/app/sw-updates/sw-updates.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { ApplicationRef, Injectable, OnDestroy } from '@angular/core';
22
import { SwUpdate } from '@angular/service-worker';
3-
import { concat, interval, NEVER, Observable, Subject } from 'rxjs';
4-
import { first, map, takeUntil, tap } from 'rxjs/operators';
3+
import { concat, interval, NEVER, Observable, Subject, first, map, takeUntil, tap } from 'rxjs';
54

65
import { Logger } from 'app/shared/logger.service';
76

docs_app/src/testing/location.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { BehaviorSubject } from 'rxjs';
2-
import { map } from 'rxjs/operators';
1+
import { BehaviorSubject, map } from 'rxjs';
32

43
export class MockLocationService {
54
urlSubject = new BehaviorSubject<string>(this.initialUrl);

spec-dtslint/Observable-spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { Observable, of, OperatorFunction } from 'rxjs';
2-
import { mapTo } from 'rxjs/operators';
1+
import { Observable, of, OperatorFunction, mapTo } from 'rxjs';
32

43
function a<I extends string, O extends string>(input: I, output: O): OperatorFunction<I, O>;
54
function a<I, O extends string>(output: O): OperatorFunction<I, O>;
@@ -126,4 +125,4 @@ describe('pipe', () => {
126125
const customOperator = () => <T>(a: Observable<T>) => a;
127126
const o = of('foo').pipe(customOperator()); // $ExpectType Observable<string>
128127
});
129-
});
128+
});

spec-dtslint/operators/audit-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of, NEVER } from 'rxjs';
2-
import { audit } from 'rxjs/operators';
1+
import { of, NEVER, audit } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(1, 2, 3).pipe(audit(() => of('foo'))); // $ExpectType Observable<number>

spec-dtslint/operators/auditTime-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of, asyncScheduler } from 'rxjs';
2-
import { auditTime } from 'rxjs/operators';
1+
import { of, asyncScheduler, auditTime } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of('a', 'b', 'c').pipe(auditTime(47)); // $ExpectType Observable<string>

spec-dtslint/operators/buffer-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of } from 'rxjs';
2-
import { buffer } from 'rxjs/operators';
1+
import { of, buffer } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(1, 2, 3).pipe(buffer(of('foo'))); // $ExpectType Observable<number[]>

spec-dtslint/operators/bufferCount-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of } from 'rxjs';
2-
import { bufferCount } from 'rxjs/operators';
1+
import { of, bufferCount } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(1, 2, 3).pipe(bufferCount(1)); // $ExpectType Observable<number[]>

spec-dtslint/operators/bufferTime-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of, asyncScheduler } from 'rxjs';
2-
import { bufferTime } from 'rxjs/operators';
1+
import { of, asyncScheduler, bufferTime } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(1, 2, 3).pipe(bufferTime(1)); // $ExpectType Observable<number[]>

spec-dtslint/operators/bufferToggle-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of, NEVER } from 'rxjs';
2-
import { bufferToggle } from 'rxjs/operators';
1+
import { of, NEVER, bufferToggle } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(1, 2, 3).pipe(bufferToggle(of('a', 'b', 'c'), value => of(new Date()))); // $ExpectType Observable<number[]>

spec-dtslint/operators/bufferWhen-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of } from 'rxjs';
2-
import { bufferWhen } from 'rxjs/operators';
1+
import { of, bufferWhen } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(1, 2, 3).pipe(bufferWhen(() => of('a', 'b', 'c'))); // $ExpectType Observable<number[]>

spec-dtslint/operators/catchError-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of, Observable, EMPTY } from 'rxjs';
2-
import { catchError } from 'rxjs/operators';
1+
import { of, Observable, EMPTY, catchError } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(1, 2, 3).pipe(catchError((() => of(4, 5, 6)))); // $ExpectType Observable<number>

spec-dtslint/operators/combineLatestAll-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of } from 'rxjs';
2-
import { combineLatestAll } from 'rxjs/operators';
1+
import { of, combineLatestAll } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of([1, 2, 3]).pipe(combineLatestAll()); // $ExpectType Observable<number[]>

spec-dtslint/operators/combineLatestWith-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of } from 'rxjs';
2-
import { combineLatestWith } from 'rxjs/operators';
1+
import { of, combineLatestWith } from 'rxjs';
32

43
describe('combineLatestWith', () => {
54
describe('without project parameter', () => {

spec-dtslint/operators/concatAll-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of } from 'rxjs';
2-
import { concatAll } from 'rxjs/operators';
1+
import { of, concatAll } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(of(1, 2, 3)).pipe(concatAll()); // $ExpectType Observable<number>

spec-dtslint/operators/concatMap-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of } from 'rxjs';
2-
import { concatMap } from 'rxjs/operators';
1+
import { of, concatMap } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(1, 2, 3).pipe(concatMap(p => of(Boolean(p)))); // $ExpectType Observable<boolean>

spec-dtslint/operators/concatMapTo-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of } from 'rxjs';
2-
import { concatMapTo } from 'rxjs/operators';
1+
import { of, concatMapTo } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(1, 2, 3).pipe(concatMapTo(of('foo'))); // $ExpectType Observable<string>

spec-dtslint/operators/concatWith-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of } from 'rxjs';
2-
import { concatWith } from 'rxjs/operators';
1+
import { of, concatWith } from 'rxjs';
32
import { a$, b$, c$, d$, e$ } from 'helpers';
43

54
it('should support rest params', () => {
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { of } from 'rxjs';
2-
import { connect } from 'rxjs/operators';
1+
import { of, connect } from 'rxjs';
32
import { a$, b$ } from '../helpers';
43

54
it('should infer from a union', () => {
65
const o = of(null).pipe(connect(() => Math.random() > 0.5 ? a$ : b$)); // $ExpectType Observable<A | B>
7-
});
6+
});

spec-dtslint/operators/count-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of, Observable } from 'rxjs';
2-
import { count } from 'rxjs/operators';
1+
import { of, Observable, count } from 'rxjs';
32

43
it('should always infer number', () => {
54
const o = of(1, 2, 3).pipe(count(x => x > 1)); // $ExpectType Observable<number>

spec-dtslint/operators/debounce-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of, timer } from 'rxjs';
2-
import { debounce } from 'rxjs/operators';
1+
import { of, timer, debounce } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(1, 2, 3).pipe(debounce(() => timer(47))); // $ExpectType Observable<number>

spec-dtslint/operators/debounceTime-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of, asyncScheduler } from 'rxjs';
2-
import { debounceTime } from 'rxjs/operators';
1+
import { of, asyncScheduler, debounceTime } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(1, 2, 3).pipe(debounceTime(47)); // $ExpectType Observable<number>

spec-dtslint/operators/defaultIfEmpty-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { EMPTY, of } from 'rxjs';
2-
import { defaultIfEmpty, map } from 'rxjs/operators';
1+
import { EMPTY, of, defaultIfEmpty, map } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(1, 2, 3).pipe(defaultIfEmpty()); // $ExpectError

spec-dtslint/operators/delay-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of, asyncScheduler } from 'rxjs';
2-
import { delay } from 'rxjs/operators';
1+
import { of, asyncScheduler, delay } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(1, 2, 3).pipe(delay(100)); // $ExpectType Observable<number>

spec-dtslint/operators/delayWhen-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of, NEVER } from 'rxjs';
2-
import { delayWhen } from 'rxjs/operators';
1+
import { of, NEVER, delayWhen } from 'rxjs';
32

43
it('should infer correctly', () => {
54
const o = of(1, 2, 3).pipe(delayWhen(() => of('a', 'b', 'c'))); // $ExpectType Observable<number>

spec-dtslint/operators/dematerialize-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of } from 'rxjs';
2-
import { dematerialize } from 'rxjs/operators';
1+
import { of, dematerialize } from 'rxjs';
32

43

54
it('should infer correctly', () => {

spec-dtslint/operators/distinct-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { of } from 'rxjs';
1+
import { of, distinct } from 'rxjs';
22
import { asInteropObservable } from '../../spec/helpers/interop-helper';
3-
import { distinct } from 'rxjs/operators';
43
import { ReadableStreamLike } from '../../src/internal/types';
54

65
it('should infer correctly', () => {

spec-dtslint/operators/distinctUntilChanged-spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { of } from 'rxjs';
2-
import { distinctUntilChanged } from 'rxjs/operators';
1+
import { of, distinctUntilChanged } from 'rxjs';
32

43
interface Person { name: string; }
54
const sample: Person = { name: 'Tim' };

0 commit comments

Comments
 (0)