From eff719588a75f4f7132dd694aa129fabf4c89684 Mon Sep 17 00:00:00 2001 From: christopherthielen Date: Tue, 12 Jul 2016 20:20:23 -0500 Subject: [PATCH] fix(redirectTo): fix redirectTo definition (interface) fix(interface): export interfaces closes #2871 --- src/common/module.ts | 1 + src/ng1.ts | 1 + src/state/interface.ts | 7 +++---- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/common/module.ts b/src/common/module.ts index 0dd053e26..f29ae9b0e 100644 --- a/src/common/module.ts +++ b/src/common/module.ts @@ -1,4 +1,5 @@ /** @module common */ /** for typedoc */ +export * from "./interface"; export * from "./common"; export * from "./coreservices"; export * from "./glob"; diff --git a/src/ng1.ts b/src/ng1.ts index 3c56d38d6..c89f34177 100644 --- a/src/ng1.ts +++ b/src/ng1.ts @@ -6,6 +6,7 @@ export * from "./core"; +export * from "./ng1/interface"; export * from "./ng1/services"; export * from "./ng1/statebuilders/views"; diff --git a/src/state/interface.ts b/src/state/interface.ts index c10776cb3..365967210 100644 --- a/src/state/interface.ts +++ b/src/state/interface.ts @@ -451,10 +451,9 @@ export interface StateDeclaration { * } * }) */ - redirectTo?: ( - ($transition$: Transition) => TargetState | - { state: (string|StateDeclaration), params: { [key: string]: any }} | - string + redirectTo?: ( string | + (($transition$: Transition) => TargetState) | + { state: (string|StateDeclaration), params: { [key: string]: any }} ) /**