Skip to content

Commit 5b58566

Browse files
fix(typings): Use StateObject for parameter to hook criteria functions
Closes #80
1 parent 2d206ba commit 5b58566

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transition/interface.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,8 @@ export interface IHookRegistry {
705705
_registeredHooks: { [key: string]: RegisteredHook[] };
706706
}
707707

708-
/** A predicate type which tests if a [[StateDeclaration]] passes some test. Returns a boolean. */
709-
export type IStateMatch = Predicate<StateDeclaration>
708+
/** A predicate type which tests if a [[StateObject]] passes some test. Returns a boolean. */
709+
export type IStateMatch = Predicate<StateObject>;
710710

711711
/**
712712
* This object is used to configure whether or not a Transition Hook is invoked for a particular transition,

0 commit comments

Comments
 (0)