The  `ol.ImageUrlFunctionType` typedef and this function signature are duplicates. Do you think we can avoid repeating ourselves here?