@uirouter/core
Version:
UI-Router Core: Framework agnostic, State-based routing for JavaScript Single Page Apps
46 lines (45 loc) • 1.34 kB
TypeScript
import { StateParams } from './params/stateParams';
import { StateDeclaration } from './state/interface';
import { StateObject } from './state/stateObject';
import { Transition } from './transition/transition';
import { Queue } from './common/queue';
import { Disposable } from './interface';
/**
* Global router state
*
* This is where we hold the global mutable state such as current state, current
* params, current transition, etc.
*/
export declare class UIRouterGlobals implements Disposable {
/**
* Current parameter values
*
* The parameter values from the latest successful transition
*/
params: StateParams;
/**
* Current state
*
* The to-state from the latest successful transition
*/
current: StateDeclaration;
/**
* Current state (internal object)
*
* The to-state from the latest successful transition
* @internal
*/
$current: StateObject;
/**
* The current started/running transition.
* This transition has reached at least the onStart phase, but is not yet complete
*/
transition: Transition;
/** @internal */
lastStartedTransitionId: number;
/** @internal */
transitionHistory: Queue<Transition>;
/** @internal */
successfulTransitions: Queue<Transition>;
dispose(): void;
}