TypeScript 0.9 compatibility