-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework
MethodsOf
type utilities for robustness
1. Using the keyof constraint feature introduced in 4.1, avoid ever introducing types with properties whose type is `never` for the non-method fields. 2. Handle recursively applying this constraint to nested methods for the `EmberMethodsOf` type, which has additional complexity to handle Ember's string-based dispatch. Combined with (1), this actually *simplifies* the types, eliminating one layer of conditional types.
- Loading branch information
1 parent
720c302
commit 072830a
Showing
2 changed files
with
29 additions
and
14 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