Fix for TypeScript 1.0