refactor(cards): added typings for cards and fetchers (#1596)

* refactor(cards): added typings for cards and fetchers

* chore: move types to separate file
This commit is contained in:
Anurag Hazra
2022-02-23 20:15:01 +05:30
committed by GitHub
parent 8b9f9317d8
commit d57251cdf1
13 changed files with 325 additions and 49 deletions
+4 -4
View File
@@ -47,10 +47,10 @@ module.exports = async (req, res) => {
);
/*
if star count & fork count is over 1k then we are kFormating the text
and if both are zero we are not showing the stats
so we can just make the cache longer, since there is no need to frequent updates
*/
if star count & fork count is over 1k then we are kFormating the text
and if both are zero we are not showing the stats
so we can just make the cache longer, since there is no need to frequent updates
*/
const stars = repoData.starCount;
const forks = repoData.forkCount;
const isBothOver1K = stars > 1000 && forks > 1000;