-
Notifications
You must be signed in to change notification settings - Fork 57
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
Generated response types are incorrect for some values #64
Comments
These types are currently automatically generated from the documentation at https://developer.github.com/v3/, via https://github.com/octokit/routes/. In this particular case from the response at https://developer.github.com/v3/search/#example-3. We are looking into ways to get better response schemas, but for the time being this is the best we can do. You'll have to manually overwrite the type, e.g. |
FWIW, I'm facing the same issue ( |
@ockham What version are you using? The types are generated from GitHub's OpenAPI spec for the REST API now, can you check the endpoint there and see if the problem is there as well |
16.26.0
Ah, I wasn't aware, thanks for the pointer! The latest version -- v18.1.1-- seems to have the right type for issues list items indeed (with the Is there any other (more JSDoc-compatible) way to access these types? |
I believe that the original issue here has been resolved. |
What happened?
Current entry in @octokit/plugin-rest-endpoint-methods/dist-types/generated/types.d.ts:
What did you expect to happen?
I'd expect
closed_at
to bestring | null
. I'm unsure about the othernull
types as well.The text was updated successfully, but these errors were encountered: