File tree Expand file tree Collapse file tree 9 files changed +19
-29
lines changed Expand file tree Collapse file tree 9 files changed +19
-29
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,8 @@ import {
6
6
RoutesRecognized ,
7
7
} from '@angular/router' ;
8
8
9
- import {
10
- BaseRouterStoreState ,
11
- SerializedRouterStateSnapshot ,
12
- } from './serializers' ;
9
+ import { BaseRouterStoreState } from './serializers/base' ;
10
+ import { SerializedRouterStateSnapshot } from './serializers/default_serializer' ;
13
11
14
12
/**
15
13
* An action dispatched when a router navigation request is fired.
Original file line number Diff line number Diff line change @@ -28,11 +28,15 @@ export {
28
28
} from './router_store_module' ;
29
29
export {
30
30
RouterStateSerializer ,
31
+ BaseRouterStoreState ,
32
+ } from './serializers/base' ;
33
+ export {
31
34
DefaultRouterStateSerializer ,
32
35
SerializedRouterStateSnapshot ,
33
- BaseRouterStoreState ,
36
+ } from './serializers/default_serializer' ;
37
+ export {
34
38
MinimalActivatedRouteSnapshot ,
35
39
MinimalRouterStateSnapshot ,
36
40
MinimalRouterStateSerializer ,
37
- } from './serializers' ;
41
+ } from './serializers/minimal_serializer ' ;
38
42
export { getSelectors } from './router_selectors' ;
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ import {
5
5
ROUTER_NAVIGATION ,
6
6
RouterAction ,
7
7
} from './actions' ;
8
- import {
9
- BaseRouterStoreState ,
10
- SerializedRouterStateSnapshot ,
11
- } from './serializers' ;
8
+ import { BaseRouterStoreState } from './serializers/base' ;
9
+ import { SerializedRouterStateSnapshot } from './serializers/default_serializer' ;
12
10
13
11
export type RouterReducerState <
14
12
T extends BaseRouterStoreState = SerializedRouterStateSnapshot
Original file line number Diff line number Diff line change 1
- import { RouterReducerState } from '@ngrx/router-store' ;
2
1
import { createSelector } from '@ngrx/store' ;
3
2
import { RouterStateSelectors } from './models' ;
3
+ import { RouterReducerState } from './reducer' ;
4
4
5
5
export function getSelectors < V > (
6
6
selectState : ( state : V ) => RouterReducerState < any >
Original file line number Diff line number Diff line change @@ -27,12 +27,14 @@ import {
27
27
} from './actions' ;
28
28
import { RouterReducerState } from './reducer' ;
29
29
import {
30
- DefaultRouterStateSerializer ,
31
30
RouterStateSerializer ,
32
- SerializedRouterStateSnapshot ,
33
31
BaseRouterStoreState ,
34
- MinimalRouterStateSerializer ,
35
- } from './serializers' ;
32
+ } from './serializers/base' ;
33
+ import {
34
+ DefaultRouterStateSerializer ,
35
+ SerializedRouterStateSnapshot ,
36
+ } from './serializers/default_serializer' ;
37
+ import { MinimalRouterStateSerializer } from './serializers/minimal_serializer' ;
36
38
37
39
export type StateKeyOrSelector <
38
40
T extends BaseRouterStoreState = SerializedRouterStateSnapshot
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
import { ActivatedRouteSnapshot , RouterStateSnapshot } from '@angular/router' ;
2
- import { BaseRouterStoreState , RouterStateSerializer } from './shared ' ;
2
+ import { BaseRouterStoreState , RouterStateSerializer } from './base ' ;
3
3
4
4
export interface SerializedRouterStateSnapshot extends BaseRouterStoreState {
5
5
root : ActivatedRouteSnapshot ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import { RouterStateSnapshot , ActivatedRouteSnapshot } from '@angular/router' ;
2
- import { BaseRouterStoreState , RouterStateSerializer } from './shared ' ;
2
+ import { BaseRouterStoreState , RouterStateSerializer } from './base ' ;
3
3
4
4
export interface MinimalActivatedRouteSnapshot {
5
5
routeConfig : ActivatedRouteSnapshot [ 'routeConfig' ] ;
You can’t perform that action at this time.
0 commit comments