fixing the build with new TypeScript version