File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export interface _ViewDeclaration {
54
54
* @internalapi
55
55
*/
56
56
$uiViewName ?: string ;
57
-
57
+
58
58
/**
59
59
* The normalized context anchor (state name) for the `uiViewName`
60
60
*
@@ -314,13 +314,13 @@ export interface StateDeclaration {
314
314
/**
315
315
* Sets the resolve policy defaults for all resolves on this state
316
316
*
317
- * This should be an [[ResolvePolicy]] object.
318
- *
317
+ * This should be an [[ResolvePolicy]] object.
318
+ *
319
319
* It can contain the following optional keys/values:
320
- *
320
+ *
321
321
* - `when`: (optional) defines when the resolve is fetched. Accepted values: "LAZY" or "EAGER"
322
322
* - `async`: (optional) if the transition waits for the resolve. Accepted values: "WAIT", "NOWAIT", "RXWAIT"
323
- *
323
+ *
324
324
* See [[ResolvePolicy]] for more details.
325
325
*/
326
326
resolvePolicy ?: ResolvePolicy
@@ -504,6 +504,7 @@ export interface StateDeclaration {
504
504
* ```
505
505
*/
506
506
redirectTo ?: RedirectToResult |
507
+ ( ( transition : Transition ) => RedirectToResult ) |
507
508
( ( transition : Transition ) => Promise < RedirectToResult > ) ;
508
509
509
510
/**
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ describe("hooks", () => {
117
117
118
118
// Test for #3117
119
119
it ( "should not redirect if the redirectTo: function returns undefined" , ( done ) => {
120
- find ( states , s => s . name === 'A' ) . redirectTo = function ( ) { } ;
120
+ find ( states , s => s . name === 'A' ) . redirectTo = function ( ) { } as any ;
121
121
init ( ) ;
122
122
123
123
$state . go ( 'A' ) . then ( ( ) => {
@@ -213,4 +213,4 @@ describe("hooks", () => {
213
213
214
214
setTimeout ( ( ) => { router . dispose ( ) ; disposed ( ) ; } , 50 ) ;
215
215
} ) ;
216
- } ) ;
216
+ } ) ;
You can’t perform that action at this time.
0 commit comments