Image copyright AFP Image caption Lekima has brought heavy rain to Taiwan

Chinese authorities have declared a red alert as a powerful typhoon heads towards the eastern coast.

Typhoon Lekima has battered Taiwan with winds of more than 190km/h (120mph) and is due to make landfall in China on Saturday.

Emergency teams have been deployed to the region to guide relief work, China's emergency ministry said.

Thousands of people further up the coast in Shanghai have been warned to prepare to evacuate.

Lekima, which is the ninth typhoon so far this year, strengthened into a super typhoon late on Wednesday, but Taiwanese authorities have since downgraded it to a regular typhoon.

Flood warnings have been issued for eastern sections of China's Yangtze River and the Yellow River until Wednesday. The provinces of Jiangsu and Shandong are also on alert.

Cruise liners have been told to delay their arrival in Shanghai and some train services have been suspended over the weekend.

Beijing has also cancelled some trains heading to and from the Yangtze delta region.

Lekima is one of two typhoons in the western Pacific at the moment. Further east, Typhoon Krosa is spreading heavy rain across the Northern Mariana Islands and Guam. It is moving north-west and could strike Japan some time next week, forecasters said.

Lekima passed by Japan's Ryukyu Islands on Thursday and continued northwest on Friday, cutting power to about 14,000 homes, broadcaster NHK reported.

Media playback is unsupported on your device Media caption Typhoon Lekima inches towards China

Some 40,000 homes were left without power in Taiwan, where several schools and offices were also forced to close.

The island's high speed rail service was suspended north of the city of Taichung, local media reported.

The huge storm came a day after eastern Taiwan was rattled by a 6.0 magnitude earthquake. Experts said the risks of landslides triggered by the tremor were made more likely by the typhoon dumping up to 900mm (35 inches) of rain on Taiwan's northern mountains.

Media playback is unsupported on your device Media caption The 6.0 earthquake in Taiwan was caught on cat cam

China's weather bureau said Lekima was expected to have weakened further by the time it made landfall. The country has a four-stage colour-coded warning system, with red representing the most severe weather.