-
-
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
Using the keyof constraint feature introduced in 4.1, avoid ever introducing types with properties whose type is `never` for the non-method fields. NOTE: this commit introduces the same fix in Ember's own internals and in the preview types, but in the preview types we need a small additional bit of plumbing to handle recursively applying this constraint to nested methods for the `EmberMethodsOf` type, which has additional complexity to handle Ember's string-based dispatch.
- Loading branch information
1 parent
720c302
commit 02c9eed
Showing
2 changed files
with
28 additions
and
12 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