PR Close #50473
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