Bug in TypeScript generation of typescriptServices.d.ts was fixed. Removing the patching code.