Conform more code to strictNullChecks
(#10444
* Conform more code to `strictNullChecks` * Fix tests * Fix tests
This commit is contained in:
parent
ba2608ec74
commit
c225b8ec29
29 changed files with 85 additions and 75 deletions
|
@ -187,8 +187,8 @@ export default class EventListSummary extends React.Component<IProps> {
|
|||
|
||||
let transition = t;
|
||||
|
||||
if (i < transitions.length - 1 && modMap[t] && modMap[t].after === t2) {
|
||||
transition = modMap[t].newTransition;
|
||||
if (i < transitions.length - 1 && modMap[t] && modMap[t]!.after === t2) {
|
||||
transition = modMap[t]!.newTransition;
|
||||
i++;
|
||||
}
|
||||
|
||||
|
@ -380,7 +380,7 @@ export default class EventListSummary extends React.Component<IProps> {
|
|||
return res ?? null;
|
||||
}
|
||||
|
||||
private static getTransitionSequence(events: IUserEvents[]): TransitionType[] {
|
||||
private static getTransitionSequence(events: IUserEvents[]): Array<TransitionType | null> {
|
||||
return events.map(EventListSummary.getTransition);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue