Fighting with typescript and converting irrigation.