Empirically the build is fine with these, but it is unfortunate that we have to reply on deprecated semantics. TypeScript should help fix this.
This is needed because of https://github.com/facebook/jest/issues/6229