Updated TypeScript to 840d6d05eb7bed61ac1dec2735f7c0d549ddf40e.