ui-router-core
Version:
UI-Router Core: Framework agnostic, State-based routing for JavaScript Single Page Apps
21 lines (20 loc) • 861 B
TypeScript
/** @module transition */ /** */
import { TransitionHookPhase, PathType } from "./interface";
import { GetErrorHandler, GetResultHandler } from "./transitionHook";
/**
* This class defines a type of hook, such as `onBefore` or `onEnter`.
* Plugins can define custom hook types, such as sticky states does for `onInactive`.
*
* @interalapi
*/
export declare class TransitionEventType {
name: string;
hookPhase: TransitionHookPhase;
hookOrder: number;
criteriaMatchPath: PathType;
reverseSort: boolean;
getResultHandler: GetResultHandler;
getErrorHandler: GetErrorHandler;
synchronous: boolean;
constructor(name: string, hookPhase: TransitionHookPhase, hookOrder: number, criteriaMatchPath: PathType, reverseSort?: boolean, getResultHandler?: GetResultHandler, getErrorHandler?: GetErrorHandler, synchronous?: boolean);
}