I encountered a TypeScript error that goes as follows:
https://i.sstatic.net/RoGER.png
The complete error message reads:
Supplied parameters do not match any signature of call target: parameter type mismatch. > Parameter 'Predicate' should have type assignable to {(value: TrackedItem, index: number, array: TrackedItem[]): typeof unknown; }' but it has type {(x: TrackedItem): boolean; }'
Why do these seemingly compatible variants not align?
At this juncture, my inclination is towards speculating that the TypeScript typing being recognized is outdated or faulty. I observed that switching it to this configuration resolves the issue:
this.trackedItems().some((x => !x.isPutaway()) as any)