Adjust for the latest TypeScript (small change in two signatures broke the compilation).