File tree 1 file changed +12
-3
lines changed 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 2
2
import { retryer } from "../common/retryer.js" ;
3
3
import { MissingParamError , request } from "../common/utils.js" ;
4
4
5
+ /**
6
+ * @typedef {import('axios').AxiosRequestHeaders } AxiosRequestHeaders Axios request headers.
7
+ * @typedef {import('axios').AxiosResponse } AxiosResponse Axios response.
8
+ */
9
+
5
10
/**
6
11
* Repo data fetcher.
7
12
*
8
- * @param {import('axios'). AxiosRequestHeaders } variables Fetcher variables.
13
+ * @param {AxiosRequestHeaders } variables Fetcher variables.
9
14
* @param {string } token GitHub token.
10
- * @returns {Promise<import('axios'). AxiosResponse> } The response.
15
+ * @returns {Promise<AxiosResponse> } The response.
11
16
*/
12
17
const fetcher = ( variables , token ) => {
13
18
return request (
@@ -53,12 +58,16 @@ const fetcher = (variables, token) => {
53
58
54
59
const urlExample = "/api/pin?username=USERNAME&repo=REPO_NAME" ;
55
60
61
+ /**
62
+ * @typedef {import("./types").RepositoryData } RepositoryData Repository data.
63
+ */
64
+
56
65
/**
57
66
* Fetch repository data.
58
67
*
59
68
* @param {string } username GitHub username.
60
69
* @param {string } reponame GitHub repository name.
61
- * @returns {Promise<import("./types"). RepositoryData> } Repository data.
70
+ * @returns {Promise<RepositoryData> } Repository data.
62
71
*/
63
72
const fetchRepo = async ( username , reponame ) => {
64
73
if ( ! username && ! reponame ) {
You can’t perform that action at this time.
0 commit comments