Skip to content

Commit

Permalink
refactor: clean unuse imports in several files (#6432)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinmalave committed May 28, 2021
1 parent 6bd1c5f commit 92fbdda
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion spec-dtslint/errors-spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AjaxError, AjaxTimeoutError } from 'rxjs/ajax';
import { AjaxError } from 'rxjs/ajax';
import {
ArgumentOutOfRangeError,
EmptyError,
Expand Down
1 change: 0 additions & 1 deletion spec-dtslint/observables/bindCallback-spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { bindCallback } from 'rxjs';
import { a, b, c, d, e, f, g, A, B, C, D, E, F, G } from '../helpers';
import { SchedulerLike } from '../../src';

describe('callbackFunc', () => {
const f0 = (cb: () => void) => {
Expand Down
2 changes: 1 addition & 1 deletion spec-dtslint/observables/empty-spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { of, empty, animationFrameScheduler, EMPTY } from 'rxjs';
import { empty, animationFrameScheduler, EMPTY } from 'rxjs';

it('should infer correctly with no parameter', () => {
const a = empty(); // $ExpectType Observable<never>
Expand Down
2 changes: 1 addition & 1 deletion spec-dtslint/observables/race-spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { race, of, NEVER, EMPTY } from 'rxjs';
import { race, NEVER, EMPTY } from 'rxjs';
import { a$, b, b$, c, c$, d$, e$, f$ } from '../helpers';

describe('race(a, b, c)', () => {
Expand Down
2 changes: 1 addition & 1 deletion spec-dtslint/observables/zip-spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Observable, of, zip } from 'rxjs';
import { of, zip } from 'rxjs';

it('should support observables', () => {
const a = of(1); // $ExpectType Observable<number>
Expand Down
2 changes: 1 addition & 1 deletion spec-dtslint/operators/count-spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { of, Observable } from 'rxjs';
import { count, buffer } from 'rxjs/operators';
import { count } from 'rxjs/operators';

it('should always infer number', () => {
const o = of(1, 2, 3).pipe(count(x => x > 1)); // $ExpectType Observable<number>
Expand Down
2 changes: 1 addition & 1 deletion spec-dtslint/operators/dematerialize-spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { of, Notification, Observable, ObservableNotification } from 'rxjs';
import { of, Notification } from 'rxjs';
import { dematerialize } from 'rxjs/operators';


Expand Down
2 changes: 1 addition & 1 deletion spec-dtslint/operators/reduce-spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { of, OperatorFunction } from 'rxjs';
import { of } from 'rxjs';
import { reduce } from 'rxjs/operators';

it('should enforce parameter', () => {
Expand Down
2 changes: 1 addition & 1 deletion spec-dtslint/operators/scan-spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { of, Observable } from 'rxjs';
import { of } from 'rxjs';
import { scan } from 'rxjs/operators';

it('should enforce parameter', () => {
Expand Down
2 changes: 1 addition & 1 deletion spec-dtslint/operators/zip-spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Observable, of } from 'rxjs';
import { of } from 'rxjs';
import { zip } from 'rxjs/operators';

it('should support observables', () => {
Expand Down
1 change: 0 additions & 1 deletion spec/helpers/test-helper.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { of, asyncScheduler, Observable, scheduled, ObservableInput } from 'rxjs';
import { observable } from 'rxjs/internal/symbol/observable';
import { iterator } from 'rxjs/internal/symbol/iterator';
import { expect } from 'chai';

if (process && process.on) {
/**
Expand Down

0 comments on commit 92fbdda

Please sign in to comment.