Typhoon Yagi weakened to a tropical storm over the Pacific near Japan early Thursday morning, but the weather agency continues to warn of heavy rain for eastern parts of the country.