Fixed axios imports inside docstrings to resolve vscode type errors (#2699)

This commit is contained in:
Alexandr Garbuzov 2023-05-07 23:03:26 +03:00 committed by GitHub
parent 6f449a1f0b
commit 15436e2aa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -5,9 +5,9 @@ import { MissingParamError, request } from "../common/utils.js";
/** /**
* Repo data fetcher. * Repo data fetcher.
* *
* @param {import('Axios').AxiosRequestHeaders} variables Fetcher variables. * @param {import('axios').AxiosRequestHeaders} variables Fetcher variables.
* @param {string} token GitHub token. * @param {string} token GitHub token.
* @returns {Promise<import('Axios').AxiosResponse>} The response. * @returns {Promise<import('axios').AxiosResponse>} The response.
*/ */
const fetcher = (variables, token) => { const fetcher = (variables, token) => {
return request( return request(

View file

@ -11,7 +11,7 @@ import {
/** /**
* Top languages fetcher object. * Top languages fetcher object.
* *
* @param {import('Axios').AxiosRequestHeaders} variables Fetcher variables. * @param {import('axios').AxiosRequestHeaders} variables Fetcher variables.
* @param {string} token GitHub token. * @param {string} token GitHub token.
* @returns {Promise<import('../common/types').StatsFetcherResponse>} Languages fetcher response. * @returns {Promise<import('../common/types').StatsFetcherResponse>} Languages fetcher response.
*/ */