You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps I'm missing something, but If I want to write a function that takes in a result of an API call, I can't currently type that parameter. For example:
constworkflow=awaitoctokit.rest.actions.listWorkflowRun(...).then(r=>r.data.workflows[0]);doSomethingWithWorkflow(workflow);functiondoSomethingWithWorkflow(workflow: ???){// do something with the workflow}
How can I type the workflow parameter? Looking in the types, I could do:
👋 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 labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
Describe the need
Perhaps I'm missing something, but If I want to write a function that takes in a result of an API call, I can't currently type that parameter. For example:
How can I type the
workflow
parameter? Looking in the types, I could do:But
RestEndpointMethodTypes
is not exported. And it'd be far better to have a type alias e.g.workflow: typeof ListWorkflowRunsResponsePayload[0]
.For now, I can get around this by indicating the things I want from the workflow:
But I assume I'm missing something here...
SDK Version
3.1.2
API Version
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: