githubgithub-apioctokitoctokit-js

What's the datatype of the value returned by octokit.createPullRequest() in octokit-plugin-create-pull-request?


I want to make a pull request from a React Native app. I am using the octokit-plugin-create-pull-request library. They have a function octokit.createPullRequest() in their documentation. I am at a point where I need to know the datatype of the value it returns. Is it an array or an object? Or is it another datatype?


Solution

  • It returns a pull request object, with the properties you see in the example response.