UNPKG

424 BTypeScriptView Raw
1import { RouterStateSnapshot } from '@angular/router';
2/**
3 * Simple router state.
4 * All custom router states / state serializers should have at least
5 * the properties of this interface.
6 */
7export interface BaseRouterStoreState {
8 url: string;
9}
10export declare abstract class RouterStateSerializer<T extends BaseRouterStoreState = BaseRouterStoreState> {
11 abstract serialize(routerState: RouterStateSnapshot): T;
12}