-
Notifications
You must be signed in to change notification settings - Fork 26
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
Errors related to Request and Response types #253
Comments
Thanks for bringing this up! It's odd that our tests didn't raise this issue earlier. Would you like to send in a PR to fix the issue? |
@wolfy1339 Sure, happy to! I'm just not quite sure if what I suggested is the proper correct fix – or rather: Why does this break in the first place? It seems to only fail in this one file but not in others that use a similar pattern 🤔 |
It seems to use those types from the Adding an explicit import should fix the problem |
Only I’m not sure importing types from Without the I’m not sure what does your |
yeah these are tricky if we want universal code. I set |
Since we switched to using native fetch, is there anything we can do for this issue? Typescript now has the types for Fetch included for NodeJS in the global scope. |
I think #249 might have introduced an issue in the generated types of this package. When using the package in a project that uses TypeScript (versione 4.3.5), I get the following errors after updating to the latest version of
@octokit/oauth-app
:I guess the
Request
andResponse
types need to be explicitly imported?The text was updated successfully, but these errors were encountered: