1 | import { LocationConfig, LocationServices } from '../common/coreservices';
|
2 | import { UIRouterPlugin } from '../interface';
|
3 | import { $InjectorLike, $QLike } from '../common/index';
|
4 | export interface LocationPlugin extends UIRouterPlugin {
|
5 | service: LocationServices;
|
6 | configuration: LocationConfig;
|
7 | }
|
8 | export interface ServicesPlugin extends UIRouterPlugin {
|
9 | $q: $QLike;
|
10 | $injector: $InjectorLike;
|
11 | }
|
12 | export interface LocationLike {
|
13 | hash: string;
|
14 | pathname: string;
|
15 | search: string;
|
16 | }
|
17 | export interface HistoryLike {
|
18 | back(distance?: any): void;
|
19 | forward(distance?: any): void;
|
20 | pushState(statedata: any, title?: string, url?: string): void;
|
21 | replaceState(statedata: any, title?: string, url?: string): void;
|
22 | }
|