From 0ae585e9fe7fb6dd5bf052450435908a3e21fbdf Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Mon, 10 Jul 2017 20:21:37 -0700 Subject: [PATCH] fix(typescript): Fix strictNullCheck type error Closes https://github.com/ui-router/core/issues/33 Closes https://github.com/angular-ui/ui-router/issues/3499 --- src/transition/interface.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/transition/interface.ts b/src/transition/interface.ts index 21ec5a8f..61762e4e 100644 --- a/src/transition/interface.ts +++ b/src/transition/interface.ts @@ -758,18 +758,18 @@ export type IStateMatch = Predicate * ``` */ 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 {