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

Remove most exceptions to TS strict rules #5171

Merged
merged 6 commits into from
May 5, 2021
Merged

Conversation

glasser
Copy link
Member

@glasser glasser commented May 4, 2021

Review individual commits.

Addresses #5170. Does not fully resolve it because there's a few left in hapi and koa that I'll fix as part of #4966.

@glasser glasser force-pushed the glasser/upgrade-ts-typecheck-tests branch from 2d7e8e3 to 39263a3 Compare May 4, 2021 22:52
Base automatically changed from glasser/upgrade-ts-typecheck-tests to release-3.0 May 5, 2021 17:01
Changing to an async function seemed like the easiest approach here.
`this.playgroundVersion` doesn't really seem to be a thing, so that line was
just extraneous.
The field types are copied from GraphQLError and Error.
Normally I'd be a bit wary of adding a bunch of `!` to non-test code,
but it's no worse than the status quo with strictNullChecks false.
Technically this is not a no-op if you have `this.requestOptions.parseOptions`,
but the parseOptions line wasn't there at all when this workaround was
originally added in #1126

(I don't remember exactly what was going on here but I assume it was "doesn't
compile without these extra lines".)
@glasser
Copy link
Member Author

glasser commented May 5, 2021

@martijnwalraven Eventual review would be appreciated, but I'm merging today for velocity.

@glasser glasser merged commit c740835 into release-3.0 May 5, 2021
@glasser glasser deleted the glasser/stricter-ts branch May 5, 2021 17:06
@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.

1 participant