Cross referencing my response for anyone who still wants to use BabylonJS@4.2 with Typescript@latest.