Issue Task Resolved

#110993Enable strictFunctionTypes for the TypeScript build

Benjamin Kott 10/09/26, 17:50 updated 10/09/26, 19:15

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

History 25

  1. Benjamin Kott commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-09T19:15:12+00:00" > 10/09/26, 19:15 </span>

    Applied in changeset commit:c8f3779cf90082b4bd01972cf5c2e6f1a8f85c6c.