Skip to content

Commit

Permalink
Fixed axios imports inside docstrings to resolve vscode type errors (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored May 7, 2023
1 parent 6f449a1 commit 15436e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/fetchers/repo-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { MissingParamError, request } from "../common/utils.js";
/**
* Repo data fetcher.
*
* @param {import('Axios').AxiosRequestHeaders} variables Fetcher variables.
* @param {import('axios').AxiosRequestHeaders} variables Fetcher variables.
* @param {string} token GitHub token.
* @returns {Promise<import('Axios').AxiosResponse>} The response.
* @returns {Promise<import('axios').AxiosResponse>} The response.
*/
const fetcher = (variables, token) => {
return request(
Expand Down
2 changes: 1 addition & 1 deletion src/fetchers/top-languages-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
/**
* Top languages fetcher object.
*
* @param {import('Axios').AxiosRequestHeaders} variables Fetcher variables.
* @param {import('axios').AxiosRequestHeaders} variables Fetcher variables.
* @param {string} token GitHub token.
* @returns {Promise<import('../common/types').StatsFetcherResponse>} Languages fetcher response.
*/
Expand Down

0 comments on commit 15436e2

Please sign in to comment.