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

Parser: allow 'options' to explicitly accept undefined #3678

Merged
merged 1 commit into from
Jul 22, 2022

Conversation

IvanGoncharov
Copy link
Member

Continuation of #3670
Basically allow to have code like this:

parse(document, GraphQLServerConfig.parserOptions)

to pass TS check with 'exactOptionalPropertyTypes'

Continuation of graphql#3670
Basically allow to have code like this:
```js
parse(document, GraphQLServerConfig.parserOptions)
```
to pass TS check with 'exactOptionalPropertyTypes'
@netlify
Copy link

netlify bot commented Jul 21, 2022

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit cd688d0
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/62d9591d2949670008c93555
😎 Deploy Preview https://deploy-preview-3678--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link

Hi @IvanGoncharov, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

@IvanGoncharov IvanGoncharov added the PR: bug fix 🐞 requires increase of "patch" version number label Jul 21, 2022
@IvanGoncharov IvanGoncharov merged commit 48003ed into graphql:main Jul 22, 2022
@IvanGoncharov IvanGoncharov deleted the pr_branch4 branch July 22, 2022 13:25
IvanGoncharov added a commit to IvanGoncharov/graphql-js that referenced this pull request Aug 16, 2022
Backport of graphql#3678
Basically allow to have code like this:
```js
parse(document, GraphQLServerConfig.parserOptions)
```
to pass TS check with 'exactOptionalPropertyTypes'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: bug fix 🐞 requires increase of "patch" version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant