Added support for typescript 1.0