Follow up to https://github.com/Unleash/unleash/pull/6605 This upgrades TypeScript in frontend to `5.4.2`, matching the version we have on the server. Only 2 things broke with this upgrade, so the changes are related to fixing the types in those places. This fixes https://github.com/Unleash/unleash/pull/6659