mirror of
https://github.com/apache/superset.git
synced 2026-05-07 08:54:23 +00:00
fix(types): use callable type for actions to fix build
Changed from Record<string, unknown> to Record<string, (...args: any[]) => any> so TypeScript understands the action properties are callable functions. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -358,9 +358,10 @@ interface StateProps {
|
||||
|
||||
// Combined actions from all action modules used in Explore
|
||||
// Note: These modules export both action creators AND action type constants,
|
||||
// so we use Record<string, unknown> to accommodate the mixed exports
|
||||
// Using a callable signature to allow TypeScript to understand these are functions
|
||||
interface DispatchProps {
|
||||
actions: Record<string, unknown>;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
actions: Record<string, (...args: any[]) => any>;
|
||||
}
|
||||
|
||||
type ExploreViewContainerProps = StateProps & DispatchProps & OwnProps;
|
||||
|
||||
Reference in New Issue
Block a user