Skip to content

Commit

Permalink
fix(typings): Use StateObject for parameter to hook criteria functions
Browse files Browse the repository at this point in the history
Closes #80
  • Loading branch information
christopherthielen committed Oct 5, 2017
1 parent 2d206ba commit 5b58566
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transition/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<StateDeclaration>
/** A predicate type which tests if a [[StateObject]] passes some test. Returns a boolean. */
export type IStateMatch = Predicate<StateObject>;

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

0 comments on commit 5b58566

Please sign in to comment.