Updates the Framework and AIO to the final version of TypeScript 5. PR Close #49458
Updates the project to support TypeScript 5.0 and to resolve any errors that came up as a result of the update. PR Close #49126