Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

A U.S. ban on foreign nationals traveling into the country if they have visited China in the last two weeks is "neither based on facts, nor helpful," Chinese officials said Saturday.

The White House announced Friday they would temporarily suspend the entry into the United States of foreign nationals who may pose a risk of transmitting a deadly coronavirus.

As the result, all foreign nationals, other than the immediate family of U.S. citizens and permanent residents, who have traveled to China within the last 14 days will not be allowed to enter the U.S. effective Sunday.

China's health authority authorities said Saturday that 259 people had died and 11,791 people were now confirmed to have contracted the virus, surpassing the number in the 2002-03 outbreak of Severe Acute Respiratory Syndrome or SARS.

The announcement came less than 48 hours after the World Health Organization (WHO) declared the outbreak a global public health emergency. The U.S. officials also declared that the novel coronavirus, dubbed 2019-nCoV, presented a public health emergency.

U.S. actions were criticized by Chinese officials.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

“Many countries have offered China help and support through various ways. In contrast, the U.S. comments and actions are neither based on facts, nor helpful at this particular time,” foreign ministry spokesperson Hua Chunying said in a statement.

While the WHO has advised against any travel restrictions, Hua said the U.S. has decided to act “in the opposite way,” setting a bad example.

“It is certainly not a gesture of goodwill,” she added.

Australia has also followed suit, with Prime Minister Scott Morrison saying the country will deny entry to all foreign nationals traveling from mainland China from Saturday.

In its updated guidance for international movement, the WHO said it advises that measures to limit the risk of exportation or importation of the disease should be implemented, without unnecessary restrictions of international traffic.

The WHO doesn’t recommend limiting trade and movement, the agency’s director-general, Dr. Tedros Adhanom Ghebreyesus, reiterated in a tweet Friday.

“Travel restrictions can cause more harm than good by hindering information sharing and medical supply chains, and harming economies. We urge countries and companies to make evidence-based, consistent decisions,” he said.

Seven people have been diagnosed with the infection in the U.S. so far, with the latest case announced Friday in California. The husband of one of those patients has also been diagnosed with the illness — the first evidence that the new virus has spread person-to-person in the U.S.

The virus is believed to have originated in Wuhan, an industrial center of 11 million people and capital of China's central Hubei province.

On Friday, China’s foreign ministry said that in view of the difficulties Chinese nationals from Hubei province, and especially Wuhan, have encountered overseas in recent days, the Chinese government has decided to send chartered flights to bring them back directly to Wuhan as soon as possible.

The State Department on Thursday warned Americans not to travel to China and advised those already in the country to leave.

Around two dozen countries have now confirmed cases of the virus, but no deaths have been reported so far.

A number of international air carriers have temporarily suspended flights to China because of dropping demand and safety precautions.