1 |
|
2 |
|
3 | import "rxjs/add/operator/mergeMap";
|
4 | import "rxjs/add/operator/map";
|
5 | import { Observable } from "rxjs/Observable";
|
6 | import { Transition, UIRouter, StateDeclaration, UIRouterPlugin } from "@uirouter/core";
|
7 | export interface StatesChangedEvent {
|
8 | currentStates: StateDeclaration[];
|
9 | registered: StateDeclaration[];
|
10 | deregistered: StateDeclaration[];
|
11 | }
|
12 | declare module '@uirouter/core/lib/globals' {
|
13 | interface UIRouterGlobals {
|
14 | states$?: Observable<StatesChangedEvent>;
|
15 | start$?: Observable<Transition>;
|
16 | success$?: Observable<Transition>;
|
17 | params$?: Observable<{
|
18 | [paramName: string]: any;
|
19 | }>;
|
20 | }
|
21 | }
|
22 |
|
23 | export declare class UIRouterRx implements UIRouterPlugin {
|
24 | name: string;
|
25 | private deregisterFns;
|
26 | constructor(router: UIRouter);
|
27 | dispose(): void;
|
28 | }
|
29 | export declare const UIRouterRxPlugin: typeof UIRouterRx;
|