mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-06-06 20:13:12 +00:00
Refactor: Stats card: Set username param type for totalCommitsFetcher function inside data fetcher (#3068)
This commit is contained in:
committed by
GitHub
parent
c3a33ca563
commit
48830adefa
@@ -143,7 +143,7 @@ const statsFetcher = async (username) => {
|
||||
/**
|
||||
* Fetch all the commits for all the repositories of a given username.
|
||||
*
|
||||
* @param {*} username GitHub username.
|
||||
* @param {string} username GitHub username.
|
||||
* @returns {Promise<number>} Total commits.
|
||||
*
|
||||
* @description Done like this because the GitHub API does not provide a way to fetch all the commits. See
|
||||
|
||||
Reference in New Issue
Block a user