upgrade to typescript 1.0