This PR updates TypeScript version to 3.7 while retaining compatibility with TS3.6. PR Close #33717
PR Close #30962