RocketChat / RocketChat/Rocket.Chat
Type-safety: remove any usage in custom sounds admin flows
Open
Nobody has claimed this yet.
type: feature
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Problem
AddCustomSound and EditSound still use any in save callbacks (// FIXME present), which weakens type safety in admin custom-sound create/edit flow.
Proposed fix
- Replace
anywith proper types in save callbacks - Keep
lib.tstype compatible with both uploaded files and existing sound data - Remove obsolete
// FIXMEcomments
Impact
- No runtime behavior change
- Better type safety and maintainability
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the AddCustomSound and EditSound save callbacks and the related lib.ts types. Replace the callbacks' any usage with types compatible with uploaded files and existing sound data, remove the obsolete FIXME comments, and confirm there is no runtime behavior change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100