The typhoon which dumped heavy rains across northern Philippines is now moving towards Taiwan and southern China.