-
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.
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 <william.yang@ericsson.com>
- Loading branch information
1 parent
baf18bc
commit b3405cf
Showing
20 changed files
with
284 additions
and
359 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
Oops, something went wrong.