Skip to content

Commit efcda86

Browse files
authored
Merge pull request #25 from roebi/24-add-declaration-in-tsconfigjson
24 add declaration in tsconfig.json
2 parents 78dbde4 + e783de7 commit efcda86

19 files changed

Lines changed: 1622 additions & 1467 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function getGithubTopicsFromGithub() {
2929
const infoLog = true;
3030
const isProd = true;
3131

32-
const githubTopics = getGithubTopics(loginName, projectName, infoLog, isProd) as Promise<String[]>;
32+
const githubTopics = getGithubTopics(loginName, projectName, infoLog, isProd) as Promise<string[]>;
3333

3434
const realGithubTopics = await githubTopics;
3535
console.group("realGithubTopics");

consts.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export declare const GITHUB_API_BASE_URL = "https://api.github.com/";
2+
export declare const GITHUB_HTML_BASE_URL = "https://github.com/";

coverage/consts.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h1><a href="index.html">All files</a> consts.js</h1>
8686
<div class="footer quiet pad2 space-top1 center small">
8787
Code coverage generated by
8888
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
89-
at 2023-09-19T23:40:19.793Z
89+
at 2023-09-20T10:23:53.845Z
9090
</div>
9191
<script src="prettify.js"></script>
9292
<script>

coverage/githubApiGet.js.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,11 @@ <h1><a href="index.html">All files</a> githubApiGet.js</h1>
235235
* @remarks
236236
* This method is part of the {@link githubApi | github-api}.
237237
*
238-
* @param {String} loginName - The github login name
239-
* @param {String} projectName - The github project name
238+
* @param {string} loginName - The github login name
239+
* @param {string} projectName - The github project name
240240
* @param {boolean} infoLog - true Logs group and info into the console
241241
* @param {boolean} isProd - true Calls fetch to github api, false returns mock data with same structure
242-
* @returns {Promise&lt;String[]&gt;} The github topics of a project
242+
* @returns {Promise&lt;string[]&gt;} The github topics of a project
243243
*/
244244
export async function getGithubTopics(loginName, projectName, infoLog, isProd) {
245245
if (infoLog) {
@@ -269,8 +269,8 @@ <h1><a href="index.html">All files</a> githubApiGet.js</h1>
269269
* @remarks
270270
* This method is part of the {@link githubApi | github-api}.
271271
*
272-
* @param {String} loginName - The github login name
273-
* @param {String} projectName - The github project name
272+
* @param {string} loginName - The github login name
273+
* @param {string} projectName - The github project name
274274
* @param {boolean} infoLog - true Logs group and info into the console
275275
* @param {boolean} isProd - true Calls fetch to github api, false returns mock data with same structure
276276
* @returns {Promise&lt;any&gt;} The github the project object / json of a project
@@ -317,7 +317,7 @@ <h1><a href="index.html">All files</a> githubApiGet.js</h1>
317317
<div class="footer quiet pad2 space-top1 center small">
318318
Code coverage generated by
319319
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
320-
at 2023-09-19T23:40:19.793Z
320+
at 2023-09-20T10:23:53.845Z
321321
</div>
322322
<script src="prettify.js"></script>
323323
<script>

coverage/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ <h1>All files</h1>
117117
<div class="footer quiet pad2 space-top1 center small">
118118
Code coverage generated by
119119
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
120-
at 2023-09-19T23:40:19.793Z
120+
at 2023-09-20T10:23:53.845Z
121121
</div>
122122
<script src="prettify.js"></script>
123123
<script>

0 commit comments

Comments
 (0)