Function ofTypeAsync