Updating to TypeScript 1.0