chore(frontend): comprehensive TypeScript quality improvements (#37625)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-02-06 16:16:57 -05:00
committed by GitHub
parent e9ae212c1c
commit fc5506e466
441 changed files with 14136 additions and 9956 deletions

View File

@@ -305,8 +305,14 @@ function mapDispatchToProps(
dispatch: ThunkDispatch<any, undefined, AnyAction>,
) {
return {
refreshAnnotationData: (annotationObj: Annotation) =>
dispatch(runAnnotationQuery(annotationObj)),
// Note: There's a type mismatch between the local Annotation interface
// and RunAnnotationQueryParams. This cast preserves existing runtime behavior.
refreshAnnotationData: (annotation: Annotation) =>
dispatch(
runAnnotationQuery(
annotation as unknown as Parameters<typeof runAnnotationQuery>[0],
),
),
};
}