From 68777ec421d41be0da27013afd4165ae7d658d26 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Mon, 13 Jul 2026 23:17:25 +0530 Subject: refactor: added linting with esling and also resolved warnings for it --- src/scripts/pages/application-receipt/captcha.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/scripts/pages/application-receipt') diff --git a/src/scripts/pages/application-receipt/captcha.ts b/src/scripts/pages/application-receipt/captcha.ts index c5bb657..94e6b0e 100644 --- a/src/scripts/pages/application-receipt/captcha.ts +++ b/src/scripts/pages/application-receipt/captcha.ts @@ -3,7 +3,11 @@ * stubs the form validation so the user can proceed without * solving a CAPTCHA. */ +type WindowApplicationReceipt = { + validateForm?: () => boolean +} & Window; + document.addEventListener("DOMContentLoaded", () => { $("#werter > div > form > div:nth-child(4)").hide(); - (window as any).validateForm = () => true; + (window as WindowApplicationReceipt).validateForm = () => true; }); -- cgit v1.2.3