now it works with TypeScript 1.0