#111596Remove redundant union members in TypeScript types
Description
Part of #111591.
A union such as string | any or 'a' | string collapses to its widest member, so the narrower ones document a type that is not checked. Resolve the findings of typescript-eslint/no-redundant-type-constituents@, then remove its "off" entry from Build/eslint.config.mjs.
Findings with typescript-eslint 8.58.1: 14, in EXT:backend, EXT:core, EXT:form and EXT:rte_ckeditor.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[TASK] Remove redundant union members in TypeScript types Resolves: #111596 Releases: main