aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/pages/application-receipt/captcha.ts
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-13 23:17:25 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-13 23:17:25 +0530
commit68777ec421d41be0da27013afd4165ae7d658d26 (patch)
tree4c1cc6af7acfeac54b2e54372944344d3f5b9a26 /src/scripts/pages/application-receipt/captcha.ts
parent20c3b38f24d79df8843f17985a7d13533d4e0d10 (diff)
downloadbanglar-bhumi-utils-68777ec421d41be0da27013afd4165ae7d658d26.tar.gz
banglar-bhumi-utils-68777ec421d41be0da27013afd4165ae7d658d26.zip
refactor: added linting with esling and also resolved warnings for it
Diffstat (limited to 'src/scripts/pages/application-receipt/captcha.ts')
-rw-r--r--src/scripts/pages/application-receipt/captcha.ts6
1 files changed, 5 insertions, 1 deletions
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;
});