rusackas commented on PR #36760:
URL: https://github.com/apache/superset/pull/36760#issuecomment-3683992928

   The `Record<string, never>` type is intentional - it represents the empty 
object `{}` default value used in the component (line 81):
   
   ```typescript
   savedMetric = {} as SavedMetricTypeDef,
   ```
   
   This matches the existing JavaScript behavior where `savedMetric` defaults 
to `{}` when not provided. Changing this would require modifying the 
component's runtime behavior, which is beyond the scope of this TypeScript 
migration PR.
   
   The current typing accurately reflects how the component is actually used in 
the codebase.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to