[TypeScript] access parameters/responses subtypes #1697
Replies: 3 comments 9 replies
-
Sorry Ian for not getting back to you. My time for Octokit is very limited, and I don't have a good answer. But I do agree that the current solution is not sufficient. I am considering to export the types similar to how they have been exported in v16. I'm not quite sure what the right approach would be, maybe export a Can you think of a project similar to Octokit which does a good job with that? Or anyone I could reach out to for help? |
Beta Was this translation helpful? Give feedback.
-
It gets uglier with optional types:
Is it feasible to just have aliases for those types? |
Beta Was this translation helpful? Give feedback.
-
I have a question: say I do export all the types and sub types for the endpoint parameters and responses, such as What happens frequently is that the endpoint names are changing. Now For TypeScript, I don't know how to communicate that a type was deprecated. Is there such a possibility? I think it's possible for methods, but not types? Any thoughts on that? |
Beta Was this translation helpful? Give feedback.
-
I've been making use of the types
AppsListAccountsUserOrOrgOnPlanResponse
,AppsListAccountsUserOrOrgOnPlanResponseItem
, andAppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePurchasePlan
.With V17, I can do
But to get to the subtypes, I need to do
In articular, the
AppsListAccountsUserOrOrgOnPlanResponse[0]
seems strange.Beta Was this translation helpful? Give feedback.
All reactions