Skip to content
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

Convert more object types to be exact #1483

Merged
merged 1 commit into from
Aug 26, 2018

Conversation

IvanGoncharov
Copy link
Member

No extremes only input types to help with detecting typos and similar to all other types in this lib.

@@ -70,7 +70,7 @@ import { DirectiveLocation } from './directiveLocation';
/**
* Configuration options to control parser behavior
*/
export type ParseOptions = {
export type ParseOptions = {|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may be a little dangerous, as I think there are places we do ParseOptions & { ... }, such as in buildASTSchema.

This would mean I can't create a generic const REPO_OPTIONS = { ... }; that could be used everywhere I call parse or buildASTSchema

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mjmahone Good catch 👍
I missed that.
I reverted this change and change to buildASTSchema options.

@IvanGoncharov IvanGoncharov merged commit 76e37d5 into graphql:master Aug 26, 2018
@IvanGoncharov IvanGoncharov deleted the exactTypes branch August 28, 2018 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants