mirror of
https://github.com/apache/superset.git
synced 2026-06-01 05:39:17 +00:00
chore(frontend): comprehensive TypeScript quality improvements (#37625)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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],
|
||||
),
|
||||
),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user