chore: Enable noImplicitAny across the codebase (#2667)

This commit is contained in:
Dermot Duffy
2026-08-09 13:22:57 -07:00
committed by GitHub
parent 6807fd7690
commit a8ce6acb44
27 changed files with 311 additions and 180 deletions
@@ -1,4 +1,4 @@
import { isEqual } from 'lodash-es';
import { isEqual, pickBy } from 'lodash-es';
import { SerialRunner } from '../../utils/concurrency/serial-runner';
import type {
@@ -55,15 +55,17 @@ export class ConditionStateManager implements ConditionStateManagerReadonlyInter
}
private _calculateTrueChange(change: ConditionState): ConditionState {
const changeState: ConditionState = {};
for (const key of Object.keys(change)) {
if (!isEqual(change[key], this._state[key])) {
changeState[key] = change[key];
}
}
return changeState;
return pickBy(
change,
(value, key) =>
!isEqual(
value,
this._state[
// lodash widens the key to `string`, which cannot index ConditionState.
key as keyof ConditionState
],
),
);
}
private _callListeners = (stateChange: ConditionStateChange): void => {