Skip to content

Commit d92d4d5

Browse files
fix(typings): Allow strictNullChecks for HookMatchCriteria
Closes #33
1 parent 2f6aff9 commit d92d4d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/transition/interface.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -761,15 +761,15 @@ export interface HookMatchCriteria {
761761
[key: string]: HookMatchCriterion;
762762

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

775775
export interface IMatchingNodes {

0 commit comments

Comments
 (0)