-
Notifications
You must be signed in to change notification settings - Fork 2k
Change type of extensions from anonymous Record to named interfaces #2465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f3fb7b1
Change type of extensions from Record to extendable interfaces
benjie eaf61b0
Add index signature to extension types
benjie 598c26d
Revert ESLint change
benjie 28be6e9
unknown -> any
benjie 7e2e0fb
Add named flow typings for extensions
benjie 8791f1e
Also export in src/index.d.ts
benjie 3efe792
Apply the changes to GraphQLSchema and GraphQLDirective
benjie 17b7d6b
Mirror to flow
benjie c72abfb
Add a note not to conflict with other projects
benjie 8bd6f83
Make Extensions types generic where appropriate
benjie c609839
Update comment.
benjie aa6ddc6
Why template arguments?
benjie 2dbc5ca
Revert named extension types in Flow
benjie 20d4f8d
Add extensions to typescript integration test
benjie 04c837a
Allow testing certain code blocks on only specific TypeScript versions
benjie b33e65f
Revert "Allow testing certain code blocks on only specific TypeScript…
benjie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how best to selectively enable this for TypeScript 3.2 and above only.
Further, the types themselves are not concretely tested, pointing to an example in the GraphQL source where this takes place would be helpful.