A new version of: https://phab.comm.dev/D5583 (to avoid rebasing problems).
Raised in D5518, it doesn't make sense for only one of alertText and alertTitle to be defined. This diff changes the type to make sure they are always defined together and updates the usages.