Skip to content

Fix formatResponse typings#5089

Merged
glasser merged 1 commit into
mainfrom
glasser/formatresponse-typings
Apr 6, 2021
Merged

Fix formatResponse typings#5089
glasser merged 1 commit into
mainfrom
glasser/formatresponse-typings

Conversation

@glasser

@glasser glasser commented Apr 6, 2021

Copy link
Copy Markdown
Member

This typing was added in #3431; it looks like we put the | null in the wrong
place. Fortunately, a function that's OK with accepting a null argument and will
never return null can still typecheck with the new type.

Fixes #5009.

This typing was added in #3431; it looks like we put the `| null` in the wrong
place. Fortunately, a function that's OK with accepting a null argument and will
never return null can still typecheck with the new type.

Fixes #5009.
@glasser glasser force-pushed the glasser/formatresponse-typings branch from e79c8d9 to 9825c40 Compare April 6, 2021 22:03
@glasser glasser merged commit ad4c3ac into main Apr 6, 2021
@glasser glasser deleted the glasser/formatresponse-typings branch April 6, 2021 22:11

@abernix abernix left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@glasser

glasser commented Apr 9, 2021

Copy link
Copy Markdown
Member Author

I've released a prerelease with this fix, version 2.23.0-alpha.0. Try out the alpha and see if it works for you! Please provide any feedback in #5094.

@glasser

glasser commented Apr 14, 2021

Copy link
Copy Markdown
Member Author

This is released in Apollo Server 2.23.0.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

formatResponse typings: null response?

2 participants