transform to typescript