Updated for TypeScript 0.9.0