Problem
Similarly, as we had to do in this PR #40418, we are again running into an issue with an excess of string unions in the Route type. You can see full explanation in the PR there.
### Solution
Update the types to reduce the number of unions so the TS is working fine.
Issue Owner
Current Issue Owner: @isabelastisser