Skip to content

Commit eff7195

Browse files
fix(redirectTo): fix redirectTo definition (interface)
fix(interface): export interfaces closes #2871
1 parent 66c3ad1 commit eff7195

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/common/module.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/** @module common */ /** for typedoc */
2+
export * from "./interface";
23
export * from "./common";
34
export * from "./coreservices";
45
export * from "./glob";

src/ng1.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
export * from "./core";
88

9+
export * from "./ng1/interface";
910
export * from "./ng1/services";
1011
export * from "./ng1/statebuilders/views";
1112

src/state/interface.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,9 @@ export interface StateDeclaration {
451451
* }
452452
* })
453453
*/
454-
redirectTo?: (
455-
($transition$: Transition) => TargetState |
456-
{ state: (string|StateDeclaration), params: { [key: string]: any }} |
457-
string
454+
redirectTo?: ( string |
455+
(($transition$: Transition) => TargetState) |
456+
{ state: (string|StateDeclaration), params: { [key: string]: any }}
458457
)
459458

460459
/**

0 commit comments

Comments
 (0)