From 5b58566aab10c9935da83764b77c13026a638163 Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Wed, 4 Oct 2017 18:30:32 -0700 Subject: [PATCH] fix(typings): Use StateObject for parameter to hook criteria functions Closes https://github.com/ui-router/core/issues/80 --- src/transition/interface.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transition/interface.ts b/src/transition/interface.ts index 26e4a82c..906caf71 100644 --- a/src/transition/interface.ts +++ b/src/transition/interface.ts @@ -705,8 +705,8 @@ export interface IHookRegistry { _registeredHooks: { [key: string]: RegisteredHook[] }; } -/** A predicate type which tests if a [[StateDeclaration]] passes some test. Returns a boolean. */ -export type IStateMatch = Predicate +/** A predicate type which tests if a [[StateObject]] passes some test. Returns a boolean. */ +export type IStateMatch = Predicate; /** * This object is used to configure whether or not a Transition Hook is invoked for a particular transition,