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

docs(types): document query argument in graphql interface #60

Merged

Conversation

copperwall
Copy link
Member

The jsdoc for the graphql(query, options) method overload specified the
first argument as a route, when it's really a GraphQL query. This
updates the documentation to reflect that.

This also adds a line to the graphql(options) method overload that
specifies that the GraphQL query must be specified in the options
parameter. If that's superfluous or could be documented better I'm happy to change it.

image

Closes #49

The jsdoc for the `graphql(query, options)` method overload specified the
first argument as a route, when it's really a GraphQL query. This
updates the documentation to reflect that.

This also adds a line to the `graphql(options)` method overload that
specifies that the GraphQL query must be specified in the `options`
parameter.
Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

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

Wonderful, thanks so much for all your help!

@gr2m gr2m merged commit ffe3bdb into octokit:master Oct 10, 2019
@gr2m
Copy link
Contributor

gr2m commented Oct 10, 2019

just fyi, I changed the commit to fix(types): ... to trigger a new release, so Typescript users get the new version and don't need to wait until we fix a code bug or add a feature

@octokitbot
Copy link
Collaborator

🎉 This PR is included in version 4.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@copperwall
Copy link
Member Author

Oh awesome, thanks so much @gr2m!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Typescript context information
3 participants