Skip to content
This repository was archived by the owner on Jul 8, 2021. It is now read-only.

Commit eb48482

Browse files
author
FIXED-TERM Toledo Navarro Jose Ignacio (BueP/ICO)
committed
refactor: rework imports across code base
* Update to import from rxjs when required * Reorder imports to adhere to the angular styleguide: external imports first, followerd by a line break and the local imports
1 parent 978149e commit eb48482

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

src/factory.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { Action } from '@ngrx/store';
2+
import { materialize } from 'rxjs/operators';
3+
24
import { NGRX_ACTIONS_META, StoreMetadata } from './internals';
35
import { NgrxSelect } from './select';
4-
import { take, materialize } from 'rxjs/operators';
56

67
export function createReducer<TState = any>(
78
store:

src/module.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { NgModule, InjectionToken, ModuleWithProviders, Injector, Inject, Optional } from '@angular/core';
2-
import { NgrxSelect } from './select';
32
import { Store, StoreModule, ReducerManager, combineReducers } from '@ngrx/store';
3+
4+
import { NgrxSelect } from './select';
45
import { createReducer } from './factory';
56

67
export const STORE_TOKEN = new InjectionToken<any>('STORE_TOKEN');

src/of-action.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Action } from '@ngrx/store';
22
import { filter } from 'rxjs/operators';
3-
import { OperatorFunction } from 'rxjs/interfaces';
3+
import { OperatorFunction } from 'rxjs';
4+
45
import { ActionType } from './symbols';
56

67
export function ofAction<T extends Action>(allowedType: ActionType<T>): OperatorFunction<Action, T>;

src/spec/index.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Store, createReducer, Action, ofAction, Select, NgrxSelect } from '../index';
21
import { Action as NgRxAction, createFeatureSelector, createSelector, Store as NgRxStore } from '@ngrx/store';
3-
import { Observable } from 'rxjs/Observable';
4-
import { of } from 'rxjs/observable/of';
2+
import { Observable, of } from 'rxjs';
3+
4+
import { Store, createReducer, Action, ofAction, Select, NgrxSelect } from '../index';
55

66
describe('actions', () => {
77
interface FooState {

0 commit comments

Comments
 (0)