diff options
author | 2020-08-19 21:52:22 -0400 | |
---|---|---|
committer | 2020-08-20 02:52:22 +0100 | |
commit | 4248fcf8a430093077c5109e6e5f675c6a068045 (patch) | |
tree | e9009e6fd4fe7514e2a671262ba9d07dfbf07f95 /source/features/show-open-prs-of-forks.tsx | |
parent | 1fb0f872c8d8739f3e6108c633dce3d31b6e4dfd (diff) | |
download | refined-github-20.8.20.tar.gz refined-github-20.8.20.tar.zst refined-github-20.8.20.zip |
Lint (#3478)20.8.20
Diffstat (limited to 'source/features/show-open-prs-of-forks.tsx')
-rw-r--r-- | source/features/show-open-prs-of-forks.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/show-open-prs-of-forks.tsx b/source/features/show-open-prs-of-forks.tsx index 0d74259d..bb646394 100644 --- a/source/features/show-open-prs-of-forks.tsx +++ b/source/features/show-open-prs-of-forks.tsx @@ -13,7 +13,7 @@ function getLinkCopy(count: number): string { return pluralize(count, 'one open pull request', '$$ open pull requests'); } -const countPRs = cache.function(async (forkedRepo: string): Promise<[number, number?]> => { +const countPRs = cache.function(async (forkedRepo: string): Promise<[prCount: number, singlePrNumber?: number]> => { const {search} = await api.v4(` search( first: 100, @@ -46,7 +46,7 @@ const countPRs = cache.function(async (forkedRepo: string): Promise<[number, num cacheKey: ([forkedRepo]): string => 'prs-on-forked-repo:' + forkedRepo + ':' + getRepoURL() }); -async function getPRs(): Promise<[number, string] | []> { +async function getPRs(): Promise<[prCount: number, url: string] | []> { // Wait for the tab bar to be loaded await elementReady([ '.pagehead + *', // Pre "Repository refresh" layout |