upgrading to typescript.api 0.5.2