chore(deps): update dependency typescript to v5
This MR takes the MR generated by renovate bot (!753 (closed)) and fixes issues that are only discovered by the newer TS5 compiler.
You can review only the second commit. The first one is an auto-generated dependency update.
I checked locally that the color rendering in CI jobs still works:
Edited by Tomas Vik (OOO back on 2024-10-31)