@@ -9,7 +9,10 @@ import { isObject, isArray } from "../common/predicates";
9
9
import { prop , propEq , val , not } from "../common/hof" ;
10
10
11
11
import { StateDeclaration , StateOrName } from "../state/interface" ;
12
- import { TransitionOptions , TransitionHookOptions , TreeChanges , IHookRegistry , IHookRegistration , IHookGetter } from "./interface" ;
12
+ import {
13
+ TransitionOptions , TransitionHookOptions , TreeChanges , IHookRegistry , IHookGetter ,
14
+ HookMatchCriteria , TransitionHookFn , TransitionStateHookFn , HookRegOptions
15
+ } from "./interface" ;
13
16
14
17
import { TransitionHook } from "./transitionHook" ;
15
18
import { HookRegistry , matchState } from "./hookRegistry" ;
@@ -65,78 +68,23 @@ export class Transition implements IHookRegistry {
65
68
private _options : TransitionOptions ;
66
69
private _treeChanges : TreeChanges ;
67
70
68
- /**
69
- * Registers a callback function as an `onBefore` Transition Hook
70
- *
71
- * The hook is only registered for this specific `Transition`.
72
- * For global hooks, use [[TransitionService.onBefore]]
73
- *
74
- * See [[IHookRegistry.onBefore]]
75
- */
76
- onBefore : IHookRegistration ;
77
- /**
78
- * Registers a callback function as an `onStart` Transition Hook
79
- *
80
- * The hook is only registered for this specific `Transition`.
81
- * For global hooks, use [[TransitionService.onStart]]
82
- *
83
- * See [[IHookRegistry.onStart]]
84
- */
85
- onStart : IHookRegistration ;
86
- /**
87
- * Registers a callback function as an `onEnter` State Hook
88
- *
89
- * The hook is only registered for this specific `Transition`.
90
- * For global hooks, use [[TransitionService.onEnter]]
91
- *
92
- * See [[IHookRegistry.onEnter]]
93
- */
94
- onEnter : IHookRegistration ;
95
- /**
96
- * Registers a callback function as an `onRetain` State Hook
97
- *
98
- * The hook is only registered for this specific `Transition`.
99
- * For global hooks, use [[TransitionService.onRetain]]
100
- *
101
- * See [[IHookRegistry.onRetain]]
102
- */
103
- onRetain : IHookRegistration ;
104
- /**
105
- * Registers a callback function as an `onExit` State Hook
106
- *
107
- * The hook is only registered for this specific `Transition`.
108
- * For global hooks, use [[TransitionService.onExit]]
109
- *
110
- * See [[IHookRegistry.onExit]]
111
- */
112
- onExit : IHookRegistration ;
113
- /**
114
- * Registers a callback function as an `onFinish` Transition Hook
115
- *
116
- * The hook is only registered for this specific `Transition`.
117
- * For global hooks, use [[TransitionService.onFinish]]
118
- *
119
- * See [[IHookRegistry.onFinish]]
120
- */
121
- onFinish : IHookRegistration ;
122
- /**
123
- * Registers a callback function as an `onSuccess` Transition Hook
124
- *
125
- * The hook is only registered for this specific `Transition`.
126
- * For global hooks, use [[TransitionService.onSuccess]]
127
- *
128
- * See [[IHookRegistry.onSuccess]]
129
- */
130
- onSuccess : IHookRegistration ;
131
- /**
132
- * Registers a callback function as an `onError` Transition Hook
133
- *
134
- * The hook is only registered for this specific `Transition`.
135
- * For global hooks, use [[TransitionService.onError]]
136
- *
137
- * See [[IHookRegistry.onError]]
138
- */
139
- onError : IHookRegistration ;
71
+ /** @inheritdoc */
72
+ onBefore ( matchCriteria : HookMatchCriteria , callback : TransitionHookFn , options ?: HookRegOptions ) : Function { throw "" ; } ;
73
+ /** @inheritdoc */
74
+ onStart ( matchCriteria : HookMatchCriteria , callback : TransitionHookFn , options ?: HookRegOptions ) : Function { throw "" ; } ;
75
+ /** @inheritdoc */
76
+ onExit ( matchCriteria : HookMatchCriteria , callback : TransitionStateHookFn , options ?: HookRegOptions ) : Function { throw "" ; } ;
77
+ /** @inheritdoc */
78
+ onRetain ( matchCriteria : HookMatchCriteria , callback : TransitionStateHookFn , options ?: HookRegOptions ) : Function { throw "" ; } ;
79
+ /** @inheritdoc */
80
+ onEnter ( matchCriteria : HookMatchCriteria , callback : TransitionStateHookFn , options ?: HookRegOptions ) : Function { throw "" ; } ;
81
+ /** @inheritdoc */
82
+ onFinish ( matchCriteria : HookMatchCriteria , callback : TransitionHookFn , options ?: HookRegOptions ) : Function { throw "" ; } ;
83
+ /** @inheritdoc */
84
+ onSuccess ( matchCriteria : HookMatchCriteria , callback : TransitionHookFn , options ?: HookRegOptions ) : Function { throw "" ; } ;
85
+ /** @inheritdoc */
86
+ onError ( matchCriteria : HookMatchCriteria , callback : TransitionHookFn , options ?: HookRegOptions ) : Function { throw "" ; } ;
87
+
140
88
getHooks : IHookGetter ;
141
89
142
90
/**
0 commit comments