-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(SignalManager): improve type safety and reduce boilerplate
- Replace individual fire* methods with strongly-typed emit interface - Consolidate signal payload types into single Signals interface - Add type-safe event handler registration with overloaded on/off methods - Remove redundant method declarations in favor of TypeScript inference - Maintain full backward compatibility with existing event system The new implementation provides compile-time type checking for event payloads while significantly reducing code volume and maintenance burden. Signed-off-by: Will Yang <[email protected]>
- Loading branch information
1 parent
6444d22
commit a2e3573
Showing
20 changed files
with
271 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.