Skip to content
Snippets Groups Projects
Commit 51b843cc authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[TASK] Declare TypeScript types for global TYPO3 object

Missing declarations caused some method calls
and assignments to not be type checked, as all
members of the (top.|window.)TYPO3 object were
declared to `any`.
This actually revealed some invalid API usage.
which is fixed as a drive-by. (No real bugs were found,
as type checking in the APIs caught/ignored such cases)

Resolves: #101644
Releases: main, 12.4
Change-Id: I2e188e53a02d9e0ae875084cadc28600c7a59aa6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80502


Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent ec4a8c2a
Showing
with 55 additions and 38 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment