-
Notifications
You must be signed in to change notification settings - Fork 12
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
[BUG]: Typechecking fails for external code with exactOptionalPropertyTypes: true
#461
Comments
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with |
exactOptionalProperty: true
exactOptionalPropertyTypes: true
Are you explicitly passing It would be nice to enable this option ourselves across all Octokit repos. |
I would be happy to give it a try to this. After trying to read a bit about this I got this blog post where it gives good points to enabling this option in out TS Config. @wolfy1339 would it be ok if I give it a try? If yes, I will create an issue in https://github.com/octokit/tsconfig and we can discuss the plan there. |
Sure, go ahead |
🎉 This issue has been resolved in version 6.1.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What happened?
When typescript is used with the option
exactOptionalPropertyTypes: true
, most code that consumes this library fails to typecheck ifundefined
is passed in for the response value.All optional properties must have explicit
| undefined
in their type definitions.Versions
all
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: