Skip to content

Commit 0ae585e

Browse files
fix(typescript): Fix strictNullCheck type error
Closes #33 Closes angular-ui/ui-router#3499
1 parent 900f4a7 commit 0ae585e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/transition/interface.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -758,18 +758,18 @@ export type IStateMatch = Predicate<StateDeclaration>
758758
* ```
759759
*/
760760
export interface HookMatchCriteria {
761-
[key: string]: HookMatchCriterion;
761+
[key: string]: HookMatchCriterion | undefined;
762762

763763
/** A [[HookMatchCriterion]] to match the destination state */
764-
to?: HookMatchCriterion | undefined;
764+
to?: HookMatchCriterion;
765765
/** A [[HookMatchCriterion]] to match the original (from) state */
766-
from?: HookMatchCriterion | undefined;
766+
from?: HookMatchCriterion;
767767
/** A [[HookMatchCriterion]] to match any state that would be exiting */
768-
exiting?: HookMatchCriterion | undefined;
768+
exiting?: HookMatchCriterion;
769769
/** A [[HookMatchCriterion]] to match any state that would be retained */
770-
retained?: HookMatchCriterion | undefined;
770+
retained?: HookMatchCriterion;
771771
/** A [[HookMatchCriterion]] to match any state that would be entering */
772-
entering?: HookMatchCriterion | undefined;
772+
entering?: HookMatchCriterion;
773773
}
774774

775775
export interface IMatchingNodes {

0 commit comments

Comments
 (0)