-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit updates our typescript version to latest. It also incorporates related fixes (workarounds?) that have blocked the upgrade since 3.6.3. I haven't yet been able to identify the underlying issue, nor do I think it's worth my time at this point. The fixes proposed here do limit some of the generic-ness of the Dispatcher class and its functions, however I'd argue that the level of said generic-ness is unnecessary. * The Dispatcher really only needs to accept a GraphQLListener * A GraphQLListener _only_ has methods for properties, so the hoops we previously jumped through to collect the names of strictly function properties on an object is unnecessary and greatly simplified by 'keyof T'. It's worth mentioning a couple things: * No type inference is lost where we consume Dispatcher. Autocomplete still smartly suggests the allowed function names of a GraphQLListener as we would hope * The types being modified don't exist in the public API, so we shouldn't have any concerns with breaking type changes to the Dispatcher class.
- Loading branch information
1 parent
b09c099
commit 1169db6
Showing
4 changed files
with
11 additions
and
19 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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