diff --git a/app/javascript/retrospring/features/questionbox/all.ts b/app/javascript/retrospring/features/questionbox/all.ts index 7b0800e6..2980ed9f 100644 --- a/app/javascript/retrospring/features/questionbox/all.ts +++ b/app/javascript/retrospring/features/questionbox/all.ts @@ -35,7 +35,7 @@ export function questionboxAllHandler(event: Event): void { }); } -export function questionboxAllInputHandler(event: KeyboardEvent) { +export function questionboxAllInputHandler(event: KeyboardEvent): void { if (event.keyCode == 13 && (event.ctrlKey || event.metaKey)) { document.querySelector(`button[name=qb-all-ask]`).click(); } diff --git a/app/javascript/retrospring/features/questionbox/report.ts b/app/javascript/retrospring/features/questionbox/report.ts index 0798c62a..a236cf97 100644 --- a/app/javascript/retrospring/features/questionbox/report.ts +++ b/app/javascript/retrospring/features/questionbox/report.ts @@ -1,4 +1,4 @@ -export function questionboxReportHandler(event: Event) { +export function questionboxReportHandler(event: Event): void { event.preventDefault(); const button = event.target as HTMLButtonElement; const questionId = button.dataset.qId; diff --git a/app/javascript/retrospring/features/questionbox/user.ts b/app/javascript/retrospring/features/questionbox/user.ts index 0fd68f61..1620d3fa 100644 --- a/app/javascript/retrospring/features/questionbox/user.ts +++ b/app/javascript/retrospring/features/questionbox/user.ts @@ -2,7 +2,7 @@ import Rails from '@rails/ujs'; import { showErrorNotification, showNotification } from 'utilities/notifications'; import I18n from '../../../legacy/i18n'; -export function questionboxUserHandler(event: Event) { +export function questionboxUserHandler(event: Event): void { const button = event.target as HTMLButtonElement; const promote = button.dataset.promote === "true"; const anonymousQuestion = document.querySelector('input[name=qb-anonymous]')?.checked; @@ -44,7 +44,7 @@ export function questionboxUserHandler(event: Event) { }); } -export function questionboxPromoteHandler(event: Event) { +export function questionboxPromoteHandler(): void { const questionbox = document.querySelector('#question-box'); questionbox.classList.toggle('d-none'); @@ -52,7 +52,7 @@ export function questionboxPromoteHandler(event: Event) { promote.classList.toggle('d-none'); } -export function questionboxUserInputHandler(event: KeyboardEvent) { +export function questionboxUserInputHandler(event: KeyboardEvent): void { if (event.keyCode == 13 && (event.ctrlKey || event.metaKey)) { document.querySelector(`button[name=qb-ask]`).click(); }