Skip to content

Commit

Permalink
Revert "fix(router-store): selectors should return MemoizedSelector (#…
Browse files Browse the repository at this point in the history
…2492)" (#2515)

This reverts commit 39a4b91.
  • Loading branch information
brandonroberts authored May 6, 2020
1 parent 3444baf commit 5255fd1
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions modules/router-store/src/models.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import { Data, Params } from '@angular/router';
import { MemoizedSelector } from '@ngrx/store';

export interface RouterStateSelectors<V> {
selectCurrentRoute: MemoizedSelector<V, any>;
selectQueryParams: MemoizedSelector<V, Params>;
selectQueryParam: (param: string) => MemoizedSelector<V, string | undefined>;
selectRouteParams: (state: V) => MemoizedSelector<V, Params>;
selectRouteParam: (
param: string
) => (state: V) => MemoizedSelector<V, string | undefined>;
selectRouteData: (state: V) => MemoizedSelector<V, Data>;
selectUrl: (state: V) => MemoizedSelector<V, string>;
selectCurrentRoute: (state: V) => any;
selectQueryParams: (state: V) => Params;
selectQueryParam: (param: string) => (state: V) => string | undefined;
selectRouteParams: (state: V) => Params;
selectRouteParam: (param: string) => (state: V) => string | undefined;
selectRouteData: (state: V) => Data;
selectUrl: (state: V) => string;
}

0 comments on commit 5255fd1

Please sign in to comment.