#110993Enable strictFunctionTypes for the TypeScript build
Description
The TypeScript build enables most sub-options of “strict” on their own, but leaves strictFunctionTypes off. Without it a callback may declare narrower parameter types than its caller passes, e.g. querySelectorAll('…').forEach((el: HTMLInputElement) => …), so such mismatches go unnoticed.
Enabling the option should be accompanied by fixing the reported errors where the value is produced: querySelectorAll() with a type argument, custom events registered in HTMLElementEventMap and DocumentEventMap, and correct response types instead of any in callbacks.
The change is limited to types. The generated JavaScript is expected to stay unchanged, apart from explicit string conversions where a corrected response type turns out to be a number.
Reviews 3
Related issues 1
History 25
-
Gerrit Code Review pushed patch set 2 for main to change 95424 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-09T17:53:52+00:00" > 10/09/26, 17:53 </span> -
Gerrit Code Review pushed patch set 1 for 14.3 to change 96571 <span data-processor="relativetime" data-value="2026-10-09T18:43:05+00:00" > 10/09/26, 18:43 </span>
-
Gerrit Code Review pushed patch set 2 for 14.3 to change 96571 <span data-processor="relativetime" data-value="2026-10-09T18:50:58+00:00" > 10/09/26, 18:50 </span>
-
Benjamin Kott commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-09T19:15:12+00:00" > 10/09/26, 19:15 </span> -
Ayke Halder changed Related to #111100 <span data-processor="relativetime" data-value="2026-10-16T15:04:00+00:00" > 10/16/26, 15:04 </span>
Applied in changeset commit:c8f3779cf90082b4bd01972cf5c2e6f1a8f85c6c.