This change enables projects to be built with TypeScript 4.1. Support for TypeScript 4.0 is also retained. PR Close #39571