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