Tropical Storm Douglas has formed in the Pacific Ocean, with maximum sustained winds of 40 mph.