diff --git a/src/common/utils.js b/src/common/utils.js index 0323b0fa49715..a82659bf8d5ea 100644 --- a/src/common/utils.js +++ b/src/common/utils.js @@ -149,15 +149,19 @@ const fallbackColor = (color, fallbackColor) => { ); }; +/** + * @typedef {import('axios').AxiosRequestConfig['data']} AxiosRequestConfigData Axios request data. + * @typedef {import('axios').AxiosRequestConfig['headers']} AxiosRequestConfigHeaders Axios request headers. + */ + /** * Send GraphQL request to GitHub API. * - * @param {import('axios').AxiosRequestConfig['data']} data Request data. - * @param {import('axios').AxiosRequestConfig['headers']} headers Request headers. + * @param {AxiosRequestConfigData} data Request data. + * @param {AxiosRequestConfigHeaders} headers Request headers. * @returns {Promise} Request response. */ const request = (data, headers) => { - // @ts-ignore return axios({ url: "https://api.github.com/graphql", method: "post",