Update to TypeScript 1.0