Skip to content

Commit

Permalink
fix(typescript): Fix strictNullCheck type error
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Jul 11, 2017
1 parent 900f4a7 commit 0ae585e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/transition/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -758,18 +758,18 @@ export type IStateMatch = Predicate<StateDeclaration>
* ```
*/
export interface HookMatchCriteria {
[key: string]: HookMatchCriterion;
[key: string]: HookMatchCriterion | undefined;

/** A [[HookMatchCriterion]] to match the destination state */
to?: HookMatchCriterion | undefined;
to?: HookMatchCriterion;
/** A [[HookMatchCriterion]] to match the original (from) state */
from?: HookMatchCriterion | undefined;
from?: HookMatchCriterion;
/** A [[HookMatchCriterion]] to match any state that would be exiting */
exiting?: HookMatchCriterion | undefined;
exiting?: HookMatchCriterion;
/** A [[HookMatchCriterion]] to match any state that would be retained */
retained?: HookMatchCriterion | undefined;
retained?: HookMatchCriterion;
/** A [[HookMatchCriterion]] to match any state that would be entering */
entering?: HookMatchCriterion | undefined;
entering?: HookMatchCriterion;
}

export interface IMatchingNodes {
Expand Down

0 comments on commit 0ae585e

Please sign in to comment.