From d92d4d51b4e287cd5c979eb09b7247160e33769a Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Wed, 22 Feb 2017 20:23:38 -0600 Subject: [PATCH] fix(typings): Allow strictNullChecks for HookMatchCriteria Closes https://github.com/ui-router/core/issues/33 --- src/transition/interface.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/transition/interface.ts b/src/transition/interface.ts index b348648c..95c71bc2 100644 --- a/src/transition/interface.ts +++ b/src/transition/interface.ts @@ -761,15 +761,15 @@ export interface HookMatchCriteria { [key: string]: HookMatchCriterion; /** A [[HookMatchCriterion]] to match the destination state */ - to?: HookMatchCriterion; + to?: HookMatchCriterion | undefined; /** A [[HookMatchCriterion]] to match the original (from) state */ - from?: HookMatchCriterion; + from?: HookMatchCriterion | undefined; /** A [[HookMatchCriterion]] to match any state that would be exiting */ - exiting?: HookMatchCriterion; + exiting?: HookMatchCriterion | undefined; /** A [[HookMatchCriterion]] to match any state that would be retained */ - retained?: HookMatchCriterion; + retained?: HookMatchCriterion | undefined; /** A [[HookMatchCriterion]] to match any state that would be entering */ - entering?: HookMatchCriterion; + entering?: HookMatchCriterion | undefined; } export interface IMatchingNodes {