-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use prototype methods, not property initializers
This appears to be a longstanding TypeScript feature request that's not seeing much action: microsoft/TypeScript#23911 What I wanted was to automatically gain the type inference for the message type from the mapped type we're implementing, but what I got was a lack of reuse of the functions themselves. The extra redundancy is painful, but these really should be proper methods.
- Loading branch information
Showing
2 changed files
with
65 additions
and
135 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