Skip to content

Repository script API / utils/github-api / readJsonResponse

Function: readJsonResponse() ​

readJsonResponse(response, description): Promise<any>

Defined in: utils/github-api.mjs:50

Returns the JSON body of a successful response, or throws with the status and the start of the body.

Parameters ​

response ​

any

description ​

any

Returns ​

Promise<any>

pumpkin-plugins documentation