Fix type issues (#4176)

This commit is contained in:
InfiniteStash
2023-10-16 05:34:54 +02:00
committed by GitHub
parent 90dfaf668b
commit 409f8fc70c
17 changed files with 41 additions and 86 deletions

View File

@@ -175,9 +175,9 @@ export function getAggregateInputIDs(
return undefined;
}
export function getAggregateState<T>(
export function getAggregateState<T, U>(
currentValue: T,
newValue: T,
newValue: U,
first: boolean
) {
if (!first && !isEqual(currentValue, newValue)) {
@@ -207,8 +207,7 @@ export function getAggregateStateObject<O, I>(
const inputKey = key as keyof I;
const currentValue = getProperty(output, outputKey);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const performerValue = getProperty(input, inputKey) as any;
const performerValue = getProperty(input, inputKey);
setProperty(
output,