Thanks for sharing your concerns.
(a bacteria) & Dengue(a virus) both commonly affect the liver
& gall bladder
Sometimes is it really difficult to differentiate between the two unless a confirmatory test is positive.
The good news is that both these infections do not have any long term effect on the liver.
You have no reasons to worry.
Neither of the two illnesses confer long term immunity , hence get him vaccinated against typhoid & use mosquito preventive measures for dengue.
Hope you find the information useful.