Bhumi0189 opened a new pull request, #37262:
URL: https://github.com/apache/superset/pull/37262
## Summary
This PR migrates a small set of dashboard utility functions from JavaScript
to TypeScript as part of the ongoing frontend TypeScript migration effort.
## Changes
- Converted the following files from `.js` to `.ts`:
- `dnd-reorder`
- `getComponentWidthFromDrop`
- `getDetailedComponentWidth`
- `getDropPosition`
- Added explicit TypeScript types for function inputs and return values
- Improved null/undefined safety where applicable
- Removed deprecated JavaScript versions of the files
## Type Safety Improvements
- Explicit typing for drag-and-drop related utilities
- Safer handling of nullable values using TypeScript features
- No changes to runtime behavior
## Testing
- Existing unit tests pass
- No new tests added (existing coverage remains unchanged)
Closes #37231 (partial)
--
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]