Skip to content

Commit 4de02a4

Browse files
committed
fix(core): Use interface instead of type alias
fixes #40
1 parent e0e875b commit 4de02a4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

projects/ngqp/core/src/lib/router-adapter/router-adapter.interface.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { InjectionToken } from '@angular/core';
2-
import { NavigationExtras, ParamMap, Params } from '@angular/router';
2+
import { ParamMap, Params } from '@angular/router';
33
import { Observable } from 'rxjs';
44

55
/**
@@ -28,7 +28,9 @@ export interface RouterAdapter {
2828
* Options to be provided when a navigation is started to update the URL.
2929
* These options are simply forwarded to Router#navigate.
3030
*/
31-
export type RouterOptions = Pick<NavigationExtras, 'replaceUrl'>;
31+
export interface RouterOptions {
32+
replaceUrl?: boolean;
33+
}
3234

3335
/**
3436
* See {@link RouterOptions}.

0 commit comments

Comments
 (0)