diff options
author | 2019-04-21 01:48:07 -0400 | |
---|---|---|
committer | 2019-04-21 13:48:07 +0800 | |
commit | 9cdb7b377fef47e621a0a0cf5c1df321f1060605 (patch) | |
tree | c4c7eea04da66d38ebbf0b8509e4cd2a17c34023 /source/features/batch-open-issues.tsx | |
parent | dea7e47bcf61640f4dee9e195fed0ad1ae938781 (diff) | |
download | refined-github-9cdb7b377fef47e621a0a0cf5c1df321f1060605.tar.gz refined-github-9cdb7b377fef47e621a0a0cf5c1df321f1060605.tar.zst refined-github-9cdb7b377fef47e621a0a0cf5c1df321f1060605.zip |
Meta: Add explicit return types on all functions (#1943)
Co-authored-by: Federico Brigante <github@bfred.it>
Diffstat (limited to 'source/features/batch-open-issues.tsx')
-rw-r--r-- | source/features/batch-open-issues.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/features/batch-open-issues.tsx b/source/features/batch-open-issues.tsx index 58d04f80..b8bd41e4 100644 --- a/source/features/batch-open-issues.tsx +++ b/source/features/batch-open-issues.tsx @@ -5,14 +5,14 @@ import features from '../libs/features'; const confirmationRequiredCount = 10; -function getUrlFromItem(checkbox: Element) { +function getUrlFromItem(checkbox: Element): string { return checkbox .closest('.js-issue-row')! .querySelector<HTMLAnchorElement>('.js-navigation-open')! .href; } -function openIssues() { +function openIssues(): void { const issues = select.all([ '#js-issues-toolbar.triage-mode + div [name="issues[]"]:checked', // Get checked checkboxes '#js-issues-toolbar:not(.triage-mode) + div .js-issue-row' // Or all items @@ -31,7 +31,7 @@ function openIssues() { }); } -function init(): false | void { +function init(): void | false { if (select.all('.js-issue-row').length < 2) { return false; } |